Update installer
This commit is contained in:
parent
20b7643657
commit
0b0d046d04
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
|
||||
// Define the current build
|
||||
define('MODS_FOR_HESK_BUILD', 37);
|
||||
define('MODS_FOR_HESK_BUILD', 38);
|
@ -80,6 +80,8 @@ if ($version == 2) {
|
||||
execute302Scripts();
|
||||
} elseif ($version == 37) {
|
||||
execute303Scripts();
|
||||
} elseif ($version == 38) {
|
||||
execute304Scripts();
|
||||
} else {
|
||||
$response = 'The version "' . $version . '" was not recognized. Check the value submitted and try again.';
|
||||
print $response;
|
||||
|
@ -46,6 +46,7 @@ $buildToVersionMap = array(
|
||||
35 => '3.0.1',
|
||||
36 => '3.0.2',
|
||||
37 => '3.0.3',
|
||||
38 => '3.0.4',
|
||||
);
|
||||
|
||||
function echoInitialVersionRows($version, $build_to_version_map)
|
||||
|
@ -107,6 +107,9 @@ function processUpdates(startingVersion) {
|
||||
} else if (startingVersion < 37) {
|
||||
startVersionUpgrade('303');
|
||||
executeUpdate(37, '303', '3.0.3');
|
||||
} else if (startingVersion < 38) {
|
||||
startVersionUpgrade('304');
|
||||
executeUpdate(38, '304', '3.0.4');
|
||||
} 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="37">3.0.3/option>
|
||||
<option value="36">3.0.2</option>
|
||||
<option value="35">3.0.1</option>
|
||||
<option value="34">3.0.0</option>
|
||||
|
@ -959,3 +959,10 @@ function execute303Scripts() {
|
||||
|
||||
updateVersion('3.0.3');
|
||||
}
|
||||
|
||||
function execute304Scripts() {
|
||||
global $hesk_settings;
|
||||
hesk_dbConnect();
|
||||
|
||||
updateVersion('3.0.4');
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user