return more detailed message (include update_channel if testing)
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -105,7 +105,7 @@ if ($page == 'overview') {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// no new version
|
// no new version
|
||||||
Response::standardSuccess('update.noupdatesavail');
|
Response::standardSuccess('update.noupdatesavail', [(Settings::Get('system.update_channel') == 'testing' ? lng('serversettings.uc_testing') : '')]);
|
||||||
}
|
}
|
||||||
} // download the new archive
|
} // download the new archive
|
||||||
elseif ($page == 'getdownload') {
|
elseif ($page == 'getdownload') {
|
||||||
|
|||||||
@@ -135,6 +135,6 @@ if ($page == 'overview') {
|
|||||||
'alert_msg' => $ui_text . $message
|
'alert_msg' => $ui_text . $message
|
||||||
]);
|
]);
|
||||||
} else {
|
} else {
|
||||||
Response::standardSuccess('update.noupdatesavail');
|
Response::standardSuccess('update.noupdatesavail', [(Settings::Get('system.update_channel') == 'testing' ? lng('serversettings.uc_testing') : '')]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,8 +58,6 @@ class Froxlor extends ApiCommand
|
|||||||
*/
|
*/
|
||||||
public function checkUpdate()
|
public function checkUpdate()
|
||||||
{
|
{
|
||||||
define('UPDATE_URI', "https://version.froxlor.org/Froxlor/api/" . $this->version);
|
|
||||||
|
|
||||||
if ($this->isAdmin() && $this->getUserDetail('change_serversettings')) {
|
if ($this->isAdmin() && $this->getUserDetail('change_serversettings')) {
|
||||||
|
|
||||||
// log our actions
|
// log our actions
|
||||||
@@ -71,10 +69,10 @@ class Froxlor extends ApiCommand
|
|||||||
if ($aucheck == 1) {
|
if ($aucheck == 1) {
|
||||||
// anzeige über version-status mit ggfls. formular
|
// anzeige über version-status mit ggfls. formular
|
||||||
// zum update schritt #1 -> download
|
// zum update schritt #1 -> download
|
||||||
$text = 'There is a newer version available: "' . AutoUpdate::getFromResult('version') . '" (Your current version is: ' . $this->version . ')';
|
$text = 'There is a newer ' . (Settings::Get('system.update_channel') == 'testing' ? 'testing ' : '') . 'version available: "' . AutoUpdate::getFromResult('version') . '" (Your current version is: ' . $this->version . ')';
|
||||||
return $this->response([
|
return $this->response([
|
||||||
'isnewerversion' => (int) !AutoUpdate::getFromResult('has_latest'),
|
'isnewerversion' => (int) !AutoUpdate::getFromResult('has_latest'),
|
||||||
'version' => AutoUpdate::getFromResult('version'),
|
'version' => $this->version,
|
||||||
'message' => $text,
|
'message' => $text,
|
||||||
'link' => AutoUpdate::getFromResult('url'),
|
'link' => AutoUpdate::getFromResult('url'),
|
||||||
'additional_info' => AutoUpdate::getFromResult('info')
|
'additional_info' => AutoUpdate::getFromResult('info')
|
||||||
@@ -103,7 +101,7 @@ class Froxlor extends ApiCommand
|
|||||||
'version' => $this->version,
|
'version' => $this->version,
|
||||||
'message' => '',
|
'message' => '',
|
||||||
'link' => '',
|
'link' => '',
|
||||||
'additional_info' => lng('update.noupdatesavail')
|
'additional_info' => lng('update.noupdatesavail', [(Settings::Get('system.update_channel') == 'testing' ? lng('serversettings.uc_testing') : '')])
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ final class UpdateCommand extends CliCommand
|
|||||||
return self::SUCCESS;
|
return self::SUCCESS;
|
||||||
}
|
}
|
||||||
// no new version
|
// no new version
|
||||||
$output->writeln('<info>' . lng('update.noupdatesavail') . '</>');
|
$output->writeln('<info>' . lng('update.noupdatesavail', [(Settings::Get('system.update_channel') == 'testing' ? lng('serversettings.uc_testing') : '')]) . '</>');
|
||||||
$result = self::SUCCESS;
|
$result = self::SUCCESS;
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
|
|||||||
@@ -2114,7 +2114,7 @@ Vielen Dank, Ihr Administrator',
|
|||||||
'part_a' => 'Die Froxlor-Dateien wurden aktualisiert. Neue Version ist <strong>%s</strong>. Die bisher installierte Version ist <strong>%s</strong>',
|
'part_a' => 'Die Froxlor-Dateien wurden aktualisiert. Neue Version ist <strong>%s</strong>. Die bisher installierte Version ist <strong>%s</strong>',
|
||||||
'part_b' => '<br /><br />Ein Kunden-Login ist vor Abschluss des Aktualisierungsvorganges nicht möglich.<br /><strong>Aktualisierung ausführen?</strong>',
|
'part_b' => '<br /><br />Ein Kunden-Login ist vor Abschluss des Aktualisierungsvorganges nicht möglich.<br /><strong>Aktualisierung ausführen?</strong>',
|
||||||
],
|
],
|
||||||
'noupdatesavail' => 'Ihre Froxlor-Version ist aktuell.',
|
'noupdatesavail' => 'Die genutzte %sVersion von Froxlor ist aktuell.',
|
||||||
'description' => 'Aktualisierung der froxlor Datenbank',
|
'description' => 'Aktualisierung der froxlor Datenbank',
|
||||||
],
|
],
|
||||||
'usersettings' => [
|
'usersettings' => [
|
||||||
|
|||||||
@@ -2499,7 +2499,7 @@ Yours sincerely, your administrator',
|
|||||||
'part_a' => 'The Froxlor files have been updated to version <strong>%s</strong>. The installed version is <strong>%s</strong>.',
|
'part_a' => 'The Froxlor files have been updated to version <strong>%s</strong>. The installed version is <strong>%s</strong>.',
|
||||||
'part_b' => '<br /><br />Customers will not be able to log in until the update has been finished.<br /><strong>Proceed?</strong>',
|
'part_b' => '<br /><br />Customers will not be able to log in until the update has been finished.<br /><strong>Proceed?</strong>',
|
||||||
],
|
],
|
||||||
'noupdatesavail' => 'You already have the latest Froxlor version.',
|
'noupdatesavail' => 'You already have the latest %sversion of Froxlor installed.',
|
||||||
'description' => 'Running database updates for your froxlor installation',
|
'description' => 'Running database updates for your froxlor installation',
|
||||||
],
|
],
|
||||||
'usersettings' => [
|
'usersettings' => [
|
||||||
|
|||||||
Reference in New Issue
Block a user