Skip to content

Commit

Permalink
improv. fix issue with maintenance function
Browse files Browse the repository at this point in the history
  • Loading branch information
nivcoo authored Dec 7, 2021
1 parent eb5786a commit 41385da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Controller/MaintenanceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
class MaintenanceController extends AppController
{

public $components = ['Session'];
public $components = ['Session', 'Util'];

public function index($url = "")
{
$this->set('title_for_layout', $this->Lang->get('MAINTENANCE__TITLE'));
$this->loadModel("Maintenance");
$check = $this->Maintenance->checkMaintenance("/" . $url);
$check = $this->Maintenance->checkMaintenance("/" . $url, $this->Util);
if ($this->Permissions->can("BYPASS_MAINTENANCE") || !$check)
$this->redirect("/");
$msg = $check["reason"];
Expand Down

0 comments on commit 41385da

Please sign in to comment.