From 64ce0b73a1dd40dafd84229419cc77370f408007 Mon Sep 17 00:00:00 2001 From: ovclas Date: Tue, 11 Oct 2011 06:52:32 +0000 Subject: [PATCH] issue 78 404 not found page developement git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9578 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/module/ModuleHandler.class.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/classes/module/ModuleHandler.class.php b/classes/module/ModuleHandler.class.php index a5ca47845..a17f7d563 100644 --- a/classes/module/ModuleHandler.class.php +++ b/classes/module/ModuleHandler.class.php @@ -150,7 +150,7 @@ // Still no module? it's an error if(!$this->module) { - $this->error = 'msg_module_does_not_exist'; + $this->error = 'msg_module_is_not_exists'; $this->httpStatusCode = '404'; } @@ -204,7 +204,8 @@ // still no act means error if(!$this->act) { - $this->error = 'msg_module_does_not_exist'; + $this->error = 'msg_module_is_not_exists'; + $this->httpStatusCode = '404'; return; } @@ -264,7 +265,8 @@ } if(!is_object($oModule)) { - $this->error = 'msg_module_does_not_exist'; + $this->error = 'msg_module_is_not_exists'; + $this->httpStatusCode = '404'; return; } @@ -486,7 +488,8 @@ function displayContent($oModule = NULL) { // If the module is not set or not an object, set error if(!$oModule || !is_object($oModule)) { - $this->error = 'msg_module_does_not_exists'; + $this->error = 'msg_module_is_not_exists'; + $this->httpStatusCode = '404'; } // If connection to DB has a problem even though it's not install module, set error @@ -513,6 +516,7 @@ $type = Mobile::isFromMobilePhone() ? 'mobile' : 'view'; $oMessageObject = &ModuleHandler::getModuleInstance('message',$type); $oMessageObject->setError(-1); + debugPrint($this->error); $oMessageObject->setMessage($this->error); $oMessageObject->dispMessage();