Small changes

This commit is contained in:
Tobias Reich 2014-02-27 21:51:12 +01:00
parent 1132ae67aa
commit 31f32068a8
2 changed files with 4 additions and 3 deletions

View File

@ -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;

View File

@ -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;
}