Update installer

merge-requests/51/head
Mike Koch 7 years ago
parent 20b7643657
commit 0b0d046d04

@ -1,4 +1,4 @@
<?php <?php
// Define the current build // Define the current build
define('MODS_FOR_HESK_BUILD', 37); define('MODS_FOR_HESK_BUILD', 38);

@ -80,6 +80,8 @@ if ($version == 2) {
execute302Scripts(); execute302Scripts();
} elseif ($version == 37) { } elseif ($version == 37) {
execute303Scripts(); execute303Scripts();
} elseif ($version == 38) {
execute304Scripts();
} else { } else {
$response = 'The version "' . $version . '" was not recognized. Check the value submitted and try again.'; $response = 'The version "' . $version . '" was not recognized. Check the value submitted and try again.';
print $response; print $response;

@ -46,6 +46,7 @@ $buildToVersionMap = array(
35 => '3.0.1', 35 => '3.0.1',
36 => '3.0.2', 36 => '3.0.2',
37 => '3.0.3', 37 => '3.0.3',
38 => '3.0.4',
); );
function echoInitialVersionRows($version, $build_to_version_map) function echoInitialVersionRows($version, $build_to_version_map)

@ -107,6 +107,9 @@ function processUpdates(startingVersion) {
} else if (startingVersion < 37) { } else if (startingVersion < 37) {
startVersionUpgrade('303'); startVersionUpgrade('303');
executeUpdate(37, '303', '3.0.3'); executeUpdate(37, '303', '3.0.3');
} else if (startingVersion < 38) {
startVersionUpgrade('304');
executeUpdate(38, '304', '3.0.4');
} else { } else {
installationFinished(); installationFinished();
} }

@ -118,6 +118,7 @@ hesk_dbConnect();
<select name="current-version" class="form-control"> <select name="current-version" class="form-control">
<option disabled>Select One, or "No Previous Installation" Below</option> <option disabled>Select One, or "No Previous Installation" Below</option>
<optgroup label="Mods for HESK 3"> <optgroup label="Mods for HESK 3">
<option value="37">3.0.3/option>
<option value="36">3.0.2</option> <option value="36">3.0.2</option>
<option value="35">3.0.1</option> <option value="35">3.0.1</option>
<option value="34">3.0.0</option> <option value="34">3.0.0</option>

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