@@ -140,7 +140,7 @@ final class UpdateCommand extends CliCommand
|
|||||||
if ($yestoall || $helper->ask($input, $output, $question)) {
|
if ($yestoall || $helper->ask($input, $output, $question)) {
|
||||||
// do extract
|
// do extract
|
||||||
$output->writeln('Extracting...');
|
$output->writeln('Extracting...');
|
||||||
$auex = AutoUpdate::extractZip($audl);
|
$auex = AutoUpdate::extractZip(Froxlor::getInstallDir() . '/updates/' . $audl);
|
||||||
if ($auex == 0) {
|
if ($auex == 0) {
|
||||||
$output->writeln("<info>Froxlor files updated successfully.</>");
|
$output->writeln("<info>Froxlor files updated successfully.</>");
|
||||||
$result = self::SUCCESS;
|
$result = self::SUCCESS;
|
||||||
@@ -188,7 +188,7 @@ final class UpdateCommand extends CliCommand
|
|||||||
include_once Froxlor::getInstallDir() . '/lib/tables.inc.php';
|
include_once Froxlor::getInstallDir() . '/lib/tables.inc.php';
|
||||||
define('_CRON_UPDATE', 1);
|
define('_CRON_UPDATE', 1);
|
||||||
ob_start([
|
ob_start([
|
||||||
'this',
|
$this,
|
||||||
'cleanUpdateOutput'
|
'cleanUpdateOutput'
|
||||||
]);
|
]);
|
||||||
include_once Froxlor::getInstallDir() . '/install/updatesql.php';
|
include_once Froxlor::getInstallDir() . '/install/updatesql.php';
|
||||||
|
|||||||
Reference in New Issue
Block a user