From c234310d851aea8a6d916592974ee10b3f2eba55 Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Wed, 29 Mar 2006 11:22:04 +0000 Subject: [PATCH] On the off-chance the $GLOBALS['main'] variable isn't set yet, set it to a new KTPage object. --- lib/dispatcher.inc.php | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) diff --git a/lib/dispatcher.inc.php b/lib/dispatcher.inc.php index a7fa7b2..2d1dcff 100644 --- a/lib/dispatcher.inc.php +++ b/lib/dispatcher.inc.php @@ -175,6 +175,9 @@ class KTStandardDispatcher extends KTDispatcher { var $sHelpPage = null; function KTStandardDispatcher() { + if (empty($GLOBALS['main'])) { + $GLOBALS['main'] =& new KTPage; + } $this->oPage =& $GLOBALS['main']; parent::KTDispatcher(); } @@ -320,6 +323,9 @@ class KTErrorDispatcher extends KTStandardDispatcher { function dispatch() { require_once(KT_LIB_DIR . '/validation/errorviewer.inc.php'); $oRegistry =& KTErrorViewerRegistry::getSingleton(); + print "
";
+        var_dump($this->oError);
+        exit(0);
         $oViewer =& $oRegistry->getViewer($this->oError);
         $this->oPage->setTitle($oViewer->view());
         $this->oPage->hideSection();
--
libgit2 0.21.4