Small changes
This commit is contained in:
parent
1132ae67aa
commit
31f32068a8
@ -103,7 +103,7 @@ function update($version = '') {
|
||||
if ($version!==''&&$configVersion!==$version) {
|
||||
$data = file_get_contents('../data/config.php');
|
||||
$data = preg_replace('/\$configVersion = \'[\w. ]*\';/', "\$configVersion = '$version';", $data);
|
||||
file_put_contents('../data/config.php', $data);
|
||||
if (file_put_contents('../data/config.php', $data)===false) return 'Error: Could not save updated config!';
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -30,6 +30,7 @@ function init($mode, $version) {
|
||||
unset($return['config']['username']);
|
||||
unset($return['config']['thumbQuality']);
|
||||
unset($return['config']['sorting']);
|
||||
unset($return['config']['dropboxKey']);
|
||||
unset($return['config']['login']);
|
||||
$return['loggedIn'] = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user