mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
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
This commit is contained in:
parent
f1ea0a4819
commit
64ce0b73a1
1 changed files with 8 additions and 4 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue