mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
propperly run update scritp of version
This commit is contained in:
parent
d30a74485a
commit
4d86254eef
|
@ -33,6 +33,7 @@ if (!file_exists($configDir."/ENABLE_INSTALL_TOOL")) {
|
|||
exit;
|
||||
}
|
||||
|
||||
$theme = "blue";
|
||||
require_once("../inc/inc.Language.php");
|
||||
require_once("../inc/inc.ClassUI.php");
|
||||
|
||||
|
@ -83,12 +84,14 @@ if($rec = $res->fetch(PDO::FETCH_ASSOC)) {
|
|||
|
||||
|
||||
if(!$errorMsg) {
|
||||
echo "<h3>Running update script</h3>";
|
||||
include('update-'.$_GET['version'].'/update.php');
|
||||
if(file_exists('update-'.$_GET['version'].'/update.php')) {
|
||||
echo "<h3>Running update script</h3>";
|
||||
include('update-'.$_GET['version'].'/update.php');
|
||||
}
|
||||
} else {
|
||||
echo $errorMsg;
|
||||
}
|
||||
echo "<p><a href=\"install.php\">Go back to installation.</a></p>";
|
||||
echo "<p><a href=\"install.php\">Go back to installation and recheck.</a></p>";
|
||||
} else {
|
||||
echo "<p>Could not determine database schema version.</p>";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user