better error-message when version of files do not match version in database (update needed), thx to 'unknown75' from the Forum
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -195,10 +195,13 @@ if(!isset($settings['panel']['version'])
|
|||||||
/**
|
/**
|
||||||
* Do not proceed further if the Database version is not the same as the script version
|
* Do not proceed further if the Database version is not the same as the script version
|
||||||
*/
|
*/
|
||||||
|
|
||||||
fclose($debugHandler);
|
fclose($debugHandler);
|
||||||
unlink($lockfile);
|
unlink($lockfile);
|
||||||
die('Version of file doesnt match version of database. Exiting...');
|
$errormessage = "Version of file doesnt match version of database. Exiting...\n\n";
|
||||||
|
$errormessage.= "Possible reason: Froxlor update\n";
|
||||||
|
$errormessage.= "Information: Current version in database: ".$settings['panel']['version']." - version of Froxlor files: ".$version."\n";
|
||||||
|
$errormessage.= "Solution: Please visit your Foxlor admin interface for further information.\n";
|
||||||
|
die($errormessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
fwrite($debugHandler, 'Froxlor version and database version are correct' . "\n");
|
fwrite($debugHandler, 'Froxlor version and database version are correct' . "\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user