Fixing a migration bug from version 2.0 to 2.1 (#87)
This commit is contained in:
parent
ce4d37dc47
commit
39f299a8c2
@ -49,7 +49,7 @@ $config = "<?php
|
|||||||
if(!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
|
if(!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
|
||||||
|
|
||||||
// Config version
|
// Config version
|
||||||
\$configVersion = 'x';
|
\$configVersion = '';
|
||||||
|
|
||||||
// Database configurations
|
// Database configurations
|
||||||
\$dbHost = '$dbHost'; //Host of the Database
|
\$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!';
|
if (file_put_contents('../data/config.php', $config)===false) return 'Warning: Could not create file!';
|
||||||
|
|
||||||
$_SESSION['login'] = true;
|
$_SESSION['login'] = true;
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user