Fixing a migration bug from version 2.0 to 2.1 (#87)

This commit is contained in:
Tobias Reich 2014-02-27 20:18:11 +01:00
parent ce4d37dc47
commit 39f299a8c2

View File

@ -49,7 +49,7 @@ $config = "<?php
if(!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
// Config version
\$configVersion = 'x';
\$configVersion = '';
// Database configurations
\$dbHost = '$dbHost'; //Host of the Database
@ -60,7 +60,7 @@ if(!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
?>";
if (file_put_contents('../data/config.php', $config)===false) return 'Warning: Could not create file!';
$_SESSION['login'] = true;
return true;