Upgrade to v2.6.2.

pull/290/merge
Joe Prochazka 2018-04-06 20:41:52 -04:00
rodzic a824a7c3a4
commit b6b2538852
3 zmienionych plików z 12 dodań i 3 usunięć

Wyświetl plik

@ -37,7 +37,7 @@
// Check if the portal is installed or needs upgraded.
$thisVersion = "2.6.1";
$thisVersion = "2.6.2";
if (!file_exists($_SERVER['DOCUMENT_ROOT']."/classes/settings.class.php")) {
header ("Location: /install/install.php");

Wyświetl plik

@ -29,7 +29,7 @@
/////////////////////////////////////////////////////////////////////////////////////
// The most current stable release.
$thisVersion = "2.6.1";
$thisVersion = "2.6.2";
// Begin the upgrade process if this release is newer than what is installed.
if (file_exists($_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR."classes".DIRECTORY_SEPARATOR."settings.class.php")) {

Wyświetl plik

@ -33,7 +33,7 @@
$common = new common();
// The most current stable release.
$thisVersion = "2.6.1";
$thisVersion = "2.6.2";
// Begin the upgrade process if this release is newer than what is installed.
if ($common->getSetting("version") == $thisVersion) {
@ -132,6 +132,15 @@
$version = "2.6.1";
}
// UPGRADE TO V2.6.2
if ($common->getSetting("version") == "2.6.1" && $success) {
$json = file_get_contents("http://localhost/install/upgrade-v2.6.2.php");
$results = json_decode($json, TRUE);
$success = $results['success'];
$message = $results['message'];
$version = "2.6.2";
}
require_once($_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR."admin".DIRECTORY_SEPARATOR."includes".DIRECTORY_SEPARATOR."header.inc.php");
// Display the instalation wizard.