Update installer / build number
This commit is contained in:
parent
b64aa60fa0
commit
fe6b4b1c48
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
|
||||
// Define the current build
|
||||
define('MODS_FOR_HESK_BUILD', 40);
|
||||
define('MODS_FOR_HESK_BUILD', 41);
|
@ -37,7 +37,7 @@ if (!defined('IN_SCRIPT')) {die('Invalid attempt');}
|
||||
|
||||
// We will be installing this HESK version:
|
||||
define('HESK_NEW_VERSION','2.7.3');
|
||||
define('MODS_FOR_HESK_NEW_VERSION','3.0.6');
|
||||
define('MODS_FOR_HESK_NEW_VERSION','3.0.7');
|
||||
define('REQUIRE_PHP_VERSION','5.3.0');
|
||||
define('REQUIRE_MYSQL_VERSION','5.0.7');
|
||||
|
||||
|
@ -86,6 +86,8 @@ if ($version == 2) {
|
||||
execute305Scripts();
|
||||
} elseif ($version == 40) {
|
||||
execute306Scripts();
|
||||
} elseif ($version == 41) {
|
||||
execute307Scripts();
|
||||
} else {
|
||||
$response = 'The version "' . $version . '" was not recognized. Check the value submitted and try again.';
|
||||
print $response;
|
||||
|
@ -49,6 +49,7 @@ $buildToVersionMap = array(
|
||||
38 => '3.0.4',
|
||||
39 => '3.0.5',
|
||||
40 => '3.0.6',
|
||||
41 => '3.0.7',
|
||||
);
|
||||
|
||||
function echoInitialVersionRows($version, $build_to_version_map)
|
||||
|
@ -116,6 +116,9 @@ function processUpdates(startingVersion) {
|
||||
} else if (startingVersion < 40) {
|
||||
startVersionUpgrade('306');
|
||||
executeUpdate(40, '306', '3.0.6');
|
||||
} else if (startingVersion < 41) {
|
||||
startVersionUpgrade('307');
|
||||
executeUpdate(41, '307', '3.0.7');
|
||||
} else {
|
||||
installationFinished();
|
||||
}
|
||||
|
@ -118,6 +118,7 @@ hesk_dbConnect();
|
||||
<select name="current-version" class="form-control">
|
||||
<option disabled>Select One, or "No Previous Installation" Below</option>
|
||||
<optgroup label="Mods for HESK 3">
|
||||
<option value="40">3.0.6</option>
|
||||
<option value="39">3.0.5</option>
|
||||
<option value="38">3.0.4</option>
|
||||
<option value="37">3.0.3</option>
|
||||
|
@ -979,4 +979,11 @@ function execute306Scripts() {
|
||||
hesk_dbConnect();
|
||||
|
||||
updateVersion('3.0.6');
|
||||
}
|
||||
|
||||
function execute307Scripts() {
|
||||
global $hesk_settings;
|
||||
hesk_dbConnect();
|
||||
|
||||
updateVersion('3.0.7');
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user