Portal made ready for v2.2.0.

pull/215/head
Joe Prochazka 2016-08-30 12:10:04 -04:00
rodzic 3af1dc048f
commit 3219b91028
3 zmienionych plików z 22 dodań i 5 usunięć

Wyświetl plik

@ -36,9 +36,12 @@
$common = new common($this);
// Check if the portal is installed or needs upgraded.
$thisVersion = "2.2.0";
if (!file_exists($_SERVER['DOCUMENT_ROOT']."/classes/settings.class.php")) {
header ("Location: /install/install.php");
} elseif ($common->getSetting("version") != "2.1.0"){
} elseif ($common->getSetting("version") != $thisVersion){
header ("Location: /install/upgrade.php");
}

Wyświetl plik

@ -29,7 +29,7 @@
/////////////////////////////////////////////////////////////////////////////////////
// The most current stable release.
$thisVersion = "2.1.0";
$thisVersion = "2.2.0";
// Begin the upgrade process if this release is newer than what is installed.
if (file_exists("../classes/settings.class.php")) {

Wyświetl plik

@ -35,7 +35,7 @@
$settings = new settings();
// The most current stable release.
$thisVersion = "2.1.0";
$thisVersion = "2.2.0";
// Begin the upgrade process if this release is newer than what is installed.
if ($common->getSetting("version") == $thisVersion) {
@ -219,7 +219,7 @@
if ($common->getSetting("version") == "2.0.2") {
try {
$common->updateSetting("version", $thisVersion);
$common->updateSetting("version", "2.0.3");
$common->updateSetting("patch", "");
} catch(Exception $e) {
$error = TRUE;
@ -330,7 +330,21 @@
$dbh = NULL;
}
}
$common->updateSetting("version", $thisVersion);
$common->updateSetting("version", "2.1.0");
$common->updateSetting("patch", "");
} catch(Exception $e) {
$error = TRUE;
$errorMessage = $e->getMessage();
}
}
///////////////////////
// UPGRADE TO V2.2.0
///////////////////////
if ($common->getSetting("version") == "2.1.0") {
try {
$common->updateSetting("version", "2.2.0");
$common->updateSetting("patch", "");
} catch(Exception $e) {
$error = TRUE;