Install or upgrade to v2.0.3.

pull/203/head
Joe Prochazka 2016-05-18 01:58:16 -04:00
rodzic c84d60bc68
commit 2a6ca33939
2 zmienionych plików z 18 dodań i 3 usunięć

Wyświetl plik

@ -29,13 +29,13 @@
/////////////////////////////////////////////////////////////////////////////////////
// The most current stable release.
$thisVersion = "2.0.2";
$thisVersion = "2.0.3";
// Begin the upgrade process if this release is newer than what is installed.
if (file_exists("../classes/settings.class.php")) {
require('../classes/common.class.php');
$common = new common();
if ($common-> getSetting("version") < $thisVersion) {
// THis is an older version so forward the user to upgrade.php
header ("Location: /install/upgrade.php");

Wyświetl plik

@ -35,7 +35,7 @@
$settings = new settings();
// The most current stable release.
$thisVersion = "2.0.2";
$thisVersion = "2.0.3";
// Begin the upgrade process if this release is newer than what is installed.
if ($common->getSetting("version") == $thisVersion) {
@ -205,6 +205,20 @@
chmod($_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR."data".DIRECTORY_SEPARATOR."portal.sqlite", 0666);
}
$common->updateSetting("version", "2.0.2");
$common->updateSetting("patch", "");
} catch(Exception $e) {
$error = TRUE;
$errorMessage = $e->getMessage();
}
}
///////////////////////
// UPGRADE RO V2.0.3
///////////////////////
if ($common->getSetting("version") == "2.0.2") {
try {
$common->updateSetting("version", $thisVersion);
$common->updateSetting("patch", "");
} catch(Exception $e) {
@ -213,6 +227,7 @@
}
}
require_once('../admin/includes/header.inc.php');
// Display the instalation wizard.