Skip to content

Commit de6fcfd

Browse files
committed
Tweak BaseController code to not call explicitly to Twig globals
1 parent cd6f112 commit de6fcfd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

userfrosting/controllers/BaseController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct($app){
3636
*/
3737
public function page404(){
3838
$twig = $this->_app->view()->getEnvironment();
39-
$this->_app->halt(404,$twig->render('errors/404.twig', $twig->getGlobals()));
39+
$this->_app->halt(404,$twig->render('errors/404.twig'));
4040
}
4141

4242
/**
@@ -48,7 +48,7 @@ public function page404(){
4848
*/
4949
public function pageDatabaseError(){
5050
$twig = $this->_app->view()->getEnvironment();
51-
$this->_app->halt(503,$twig->render('errors/database.twig', $twig->getGlobals()));
51+
$this->_app->halt(503,$twig->render('errors/database.twig'));
5252
}
5353

5454
/**

0 commit comments

Comments
 (0)