-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #615 from jprochazka/fixes
v2.8.7 (Fixes to issues.)
- Loading branch information
Showing
9 changed files
with
77 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
/////////////////////// | ||
// UPGRADE TO V2.8.8 | ||
/////////////////////// | ||
|
||
// -------------------------------------------------------- | ||
// Updates the version to 2.8.8 | ||
// -------------------------------------------------------- | ||
|
||
$results = upgrade(); | ||
exit(json_encode($results)); | ||
|
||
function upgrade() { | ||
require_once($_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR."classes".DIRECTORY_SEPARATOR."common.class.php"); | ||
require_once($_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR."classes".DIRECTORY_SEPARATOR."settings.class.php"); | ||
|
||
$common = new common(); | ||
$settings = new settings(); | ||
|
||
try { | ||
// Update the version and patch settings | ||
$common->updateSetting("version", "2.8.8"); | ||
$common->updateSetting("patch", ""); | ||
|
||
// The upgrade process completed successfully | ||
$results['success'] = TRUE; | ||
$results['message'] = "Upgrade to v2.8.8 successful."; | ||
return $results; | ||
|
||
} catch(Exception $e) { | ||
// Something went wrong during this upgrade process | ||
$results['success'] = FALSE; | ||
$results['message'] = $e->getMessage(); | ||
return $results; | ||
} | ||
} | ||
?> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters