fixed a few functions I've missed
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -30,8 +30,6 @@
|
||||
*/
|
||||
function showUpdateStep($task = null, $needs_status = true)
|
||||
{
|
||||
global $updatelog, $filelog;
|
||||
|
||||
if (! $needs_status)
|
||||
echo "<b>";
|
||||
|
||||
@@ -42,8 +40,8 @@ function showUpdateStep($task = null, $needs_status = true)
|
||||
echo "</b><br />";
|
||||
}
|
||||
|
||||
$updatelog->logAction(ADM_ACTION, LOG_WARNING, $task);
|
||||
$filelog->logAction(ADM_ACTION, LOG_WARNING, $task);
|
||||
\Froxlor\FroxlorLogger::getInstanceOf()->logAction(ADM_ACTION, LOG_WARNING, $task);
|
||||
\Froxlor\FroxlorLogger::getInstanceOf()->logAction(ADM_ACTION, LOG_WARNING, $task);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -59,8 +57,6 @@ function showUpdateStep($task = null, $needs_status = true)
|
||||
*/
|
||||
function lastStepStatus($status = -1, $message = '')
|
||||
{
|
||||
global $updatelog, $filelog;
|
||||
|
||||
switch ($status) {
|
||||
|
||||
case 0:
|
||||
@@ -85,9 +81,9 @@ function lastStepStatus($status = -1, $message = '')
|
||||
echo "<span class=\"update-step update-step-" . $status_color . "\">" . $status_sign . "</span><br />";
|
||||
|
||||
if ($status == - 1 || $status == 2) {
|
||||
$updatelog->logAction(ADM_ACTION, LOG_WARNING, 'Attention - last update task failed!!!');
|
||||
$filelog->logAction(ADM_ACTION, LOG_WARNING, 'Attention - last update task failed!!!');
|
||||
\Froxlor\FroxlorLogger::getInstanceOf()->logAction(ADM_ACTION, LOG_WARNING, 'Attention - last update task failed!!!');
|
||||
\Froxlor\FroxlorLogger::getInstanceOf()->logAction(ADM_ACTION, LOG_WARNING, 'Attention - last update task failed!!!');
|
||||
} elseif ($status == 0 || $status == 1) {
|
||||
$filelog->logAction(ADM_ACTION, LOG_WARNING, 'Success');
|
||||
\Froxlor\FroxlorLogger::getInstanceOf()->logAction(ADM_ACTION, LOG_WARNING, 'Success');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3202,7 +3202,7 @@ if (\Froxlor\Froxlor::isFroxlorVersion('0.9.35-dev4')) {
|
||||
showUpdateStep("Updating from 0.9.35-dev4 to 0.9.35-dev5", false);
|
||||
|
||||
showUpdateStep("Adding more Let's Encrypt settings");
|
||||
Settings::AddNew("system.letsencryptchallengepath", FROXLOR_INSTALL_DIR);
|
||||
Settings::AddNew("system.letsencryptchallengepath", \Froxlor\Froxlor::getInstallDir());
|
||||
Settings::AddNew("system.letsencryptkeysize", '4096');
|
||||
Settings::AddNew("system.letsencryptreuseold", 0);
|
||||
Database::query("ALTER TABLE `" . TABLE_PANEL_DOMAIN_SSL_SETTINGS . "` ADD `ssl_csr_file` MEDIUMTEXT AFTER `ssl_cert_chainfile`;");
|
||||
|
||||
@@ -47,7 +47,7 @@ function getPreConfig($current_version, $current_db_version)
|
||||
|
||||
function versionInUpdate($current_version, $version_to_check)
|
||||
{
|
||||
if (! isFroxlor()) {
|
||||
if (! \Froxlor\Froxlor::isFroxlor()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user