From 1d2f5a693c2f11491a3e2dac847e1b2c69760426 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Sun, 8 Jan 2023 13:25:14 +0100 Subject: [PATCH] fix cli-updater Signed-off-by: Michael Kaufmann --- lib/Froxlor/Cli/UpdateCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Froxlor/Cli/UpdateCommand.php b/lib/Froxlor/Cli/UpdateCommand.php index 2f1fd27a..c97f6eaf 100644 --- a/lib/Froxlor/Cli/UpdateCommand.php +++ b/lib/Froxlor/Cli/UpdateCommand.php @@ -140,7 +140,7 @@ final class UpdateCommand extends CliCommand if ($yestoall || $helper->ask($input, $output, $question)) { // do extract $output->writeln('Extracting...'); - $auex = AutoUpdate::extractZip($audl); + $auex = AutoUpdate::extractZip(Froxlor::getInstallDir() . '/updates/' . $audl); if ($auex == 0) { $output->writeln("Froxlor files updated successfully."); $result = self::SUCCESS; @@ -188,7 +188,7 @@ final class UpdateCommand extends CliCommand include_once Froxlor::getInstallDir() . '/lib/tables.inc.php'; define('_CRON_UPDATE', 1); ob_start([ - 'this', + $this, 'cleanUpdateOutput' ]); include_once Froxlor::getInstallDir() . '/install/updatesql.php';