From a2bb8a2f48e449bcdba4d65283cf03a98adb8908 Mon Sep 17 00:00:00 2001 From: Stephan Kasdorf Date: Fri, 25 Jan 2019 20:01:31 +0100 Subject: [PATCH] BUGFIX: not loading because of GLOBALS, now fixed- --- core/a/pageination.php | 6 +++--- core/c/debug.php | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/core/a/pageination.php b/core/a/pageination.php index d7265d8..a179c1e 100755 --- a/core/a/pageination.php +++ b/core/a/pageination.php @@ -7,15 +7,15 @@ namespace Nibiru\Module; * Last Update: 04.01.2019 * Time: 19:13 */ -use Nibiru\Adapter; +use Nibiru\Attributes; use Nibiru\Config; use Nibiru\Controller; use Nibiru\Router; 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 $_current_page_content = array(); diff --git a/core/c/debug.php b/core/c/debug.php index a344a83..a16cb71 100644 --- a/core/c/debug.php +++ b/core/c/debug.php @@ -224,7 +224,8 @@ final class Debug */ private function _setGlobalsData() { - if(sizeof($GLOBALS)>0) + + if(sizeof($GLOBALS)>0 && array_key_exists(0, $GLOBALS)) { $this->_globals_data = '
' . print_r($GLOBALS, true) . '
'; } @@ -233,6 +234,7 @@ final class Debug $this->_globals_data = Messages::msg_globals(); } Controller::getInstance()->varname( View::getInstance()->getEngine(), array('ndbglobals' => $this->getGlobalsData()) ); + } /**