Update installer

merge-requests/51/head
Mike Koch 7 years ago
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>

@ -958,4 +958,11 @@ function execute303Scripts() {
hesk_dbConnect();
updateVersion('3.0.3');
}
function execute304Scripts() {
global $hesk_settings;
hesk_dbConnect();
updateVersion('3.0.4');
}
Loading…
Cancel
Save