BUGFIX: not loading because of GLOBALS, now fixed-
This commit is contained in:
@@ -7,15 +7,15 @@ namespace Nibiru\Module;
|
|||||||
* Last Update: 04.01.2019
|
* Last Update: 04.01.2019
|
||||||
* Time: 19:13
|
* Time: 19:13
|
||||||
*/
|
*/
|
||||||
use Nibiru\Adapter;
|
use Nibiru\Attributes;
|
||||||
use Nibiru\Config;
|
use Nibiru\Config;
|
||||||
use Nibiru\Controller;
|
use Nibiru\Controller;
|
||||||
use Nibiru\Router;
|
use Nibiru\Router;
|
||||||
use Nibiru\View;
|
use Nibiru\View;
|
||||||
|
|
||||||
abstract class Pageination implements Adapter\Pageination
|
abstract class Pageination implements \Nibiru\IPageination
|
||||||
{
|
{
|
||||||
use \Nibiru\Messages\Pageination;
|
use Attributes\Pageination;
|
||||||
|
|
||||||
private static $_table = false;
|
private static $_table = false;
|
||||||
private static $_current_page_content = array();
|
private static $_current_page_content = array();
|
||||||
|
|||||||
@@ -224,7 +224,8 @@ final class Debug
|
|||||||
*/
|
*/
|
||||||
private function _setGlobalsData()
|
private function _setGlobalsData()
|
||||||
{
|
{
|
||||||
if(sizeof($GLOBALS)>0)
|
|
||||||
|
if(sizeof($GLOBALS)>0 && array_key_exists(0, $GLOBALS))
|
||||||
{
|
{
|
||||||
$this->_globals_data = '<pre>' . print_r($GLOBALS, true) . '</pre>';
|
$this->_globals_data = '<pre>' . print_r($GLOBALS, true) . '</pre>';
|
||||||
}
|
}
|
||||||
@@ -233,6 +234,7 @@ final class Debug
|
|||||||
$this->_globals_data = Messages::msg_globals();
|
$this->_globals_data = Messages::msg_globals();
|
||||||
}
|
}
|
||||||
Controller::getInstance()->varname( View::getInstance()->getEngine(), array('ndbglobals' => $this->getGlobalsData()) );
|
Controller::getInstance()->varname( View::getInstance()->getEngine(), array('ndbglobals' => $this->getGlobalsData()) );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user