api troubles bzt we're getting there
All checks were successful
Build and push / Pulling repo on server (push) Has been skipped
All checks were successful
Build and push / Pulling repo on server (push) Has been skipped
This commit is contained in:
@ -20,6 +20,8 @@ class Page
|
||||
public $menu_priority;
|
||||
public $submenu;
|
||||
|
||||
private $r;
|
||||
|
||||
function __construct($controller, $action, $r = 1, $params = [])
|
||||
{
|
||||
$this->_controller = $controller;
|
||||
@ -31,6 +33,11 @@ class Page
|
||||
if(is_array($GLOBALS['vars']) && is_array($this->params))
|
||||
$this->params = array_merge($this->params, $GLOBALS['vars']);
|
||||
$this->menu_image = '/css/imgs/empty.png';
|
||||
|
||||
if($GLOBALS['redis'] !== false)
|
||||
$this->r = $GLOBALS['redis'];
|
||||
else
|
||||
$this->r = false;
|
||||
}
|
||||
|
||||
function setMenu()
|
||||
|
Reference in New Issue
Block a user