Update installer

merge-requests/20/head 2.6.1
Mike Koch 8 years ago
parent 33051e513e
commit 6388e6e1cc

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

@ -60,6 +60,8 @@ if ($version == 2) {
execute255Scripts(); execute255Scripts();
} elseif ($version == 27) { } elseif ($version == 27) {
execute260Scripts(); execute260Scripts();
} elseif ($version == 28) {
execute261Scripts();
} 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;

@ -36,6 +36,7 @@ $buildToVersionMap = array(
25 => '2.5.4', 25 => '2.5.4',
26 => '2.5.5', 26 => '2.5.5',
27 => '2.6.0', 27 => '2.6.0',
28 => '2.6.1',
); );
function echoInitialVersionRows($version, $build_to_version_map) function echoInitialVersionRows($version, $build_to_version_map)

@ -77,6 +77,9 @@ function processUpdates(startingVersion) {
} else if (startingVersion < 27) { } else if (startingVersion < 27) {
startVersionUpgrade('260'); startVersionUpgrade('260');
executeUpdate(27, '260', '2.6.0'); executeUpdate(27, '260', '2.6.0');
} else if (startingVersion < 28) {
startVersionUpgrade('261');
executeUpdate(28, '261', '2.6.1');
} else { } else {
installationFinished(); installationFinished();
} }

@ -117,6 +117,7 @@ hesk_dbConnect();
<div class="col-md-8"> <div class="col-md-8">
<select name="current-version" class="form-control"> <select name="current-version" class="form-control">
<optgroup label="Mods for HESK 2"> <optgroup label="Mods for HESK 2">
<option value="27">2.6.0</option>
<option value="26">2.5.5</option> <option value="26">2.5.5</option>
<option value="25">2.5.4</option> <option value="25">2.5.4</option>
<option value="24">2.5.3</option> <option value="24">2.5.3</option>

@ -790,6 +790,11 @@ function execute260Scripts()
updateVersion('2.6.0'); updateVersion('2.6.0');
} }
// Version 2.6.1
function execute261Scripts() {
updateVersion('2.6.1');
}
function execute270Scripts() { function execute270Scripts() {
global $hesk_settings; global $hesk_settings;
hesk_dbConnect(); hesk_dbConnect();

Loading…
Cancel
Save