From 0aa9de40e5205c945cffb3d21abe496cf436562d Mon Sep 17 00:00:00 2001 From: DariusIII Date: Mon, 4 Mar 2019 11:30:22 +0100 Subject: [PATCH] Fix maintenance mode check in UpdateNNTmux console command --- Changelog | 1 + app/Console/Commands/UpdateNNTmux.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index e9c2bec27..765c39c06 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2019-03-04 DariusIII + * Fix: Fix maintenance mode check in UpdateNNTmux console command * Chg: Update voku/simple_html_dom (4.3.1 => 4.3.2) 2019-03-03 DariusIII * Chg: Update symfony components remove unused trait diff --git a/app/Console/Commands/UpdateNNTmux.php b/app/Console/Commands/UpdateNNTmux.php index f2235eeb9..cc7dc6aa7 100644 --- a/app/Console/Commands/UpdateNNTmux.php +++ b/app/Console/Commands/UpdateNNTmux.php @@ -4,6 +4,7 @@ namespace App\Console\Commands; use Blacklight\Tmux; use Illuminate\Console\Command; +use Illuminate\Support\Facades\App; use Ytake\LaravelSmarty\Smarty; class UpdateNNTmux extends Command @@ -89,7 +90,7 @@ class UpdateNNTmux extends Command */ private function appDown(): bool { - if ($this->appDown() === false) { + if (App::isDownForMaintenance() === false) { $this->call('down'); return true;