최종단계에서 Set http status message

This commit is contained in:
conory 2016-04-19 17:10:15 +09:00
parent 13c6178a57
commit de0b09f4e3
3 changed files with 6 additions and 7 deletions

View file

@ -919,8 +919,6 @@ class ModuleHandler extends Handler
$oMessageObject->setTemplateFile('http_status_code');
}
self::_setHttpStatusMessage($oMessageObject->getHttpStatusCode());
// If module was called normally, change the templates of the module into ones of the message view module
if($oModule)
{
@ -933,7 +931,7 @@ class ModuleHandler extends Handler
{
$oModule = $oMessageObject;
}
self::_clearErrorSession();
}
@ -1051,7 +1049,10 @@ class ModuleHandler extends Handler
}
}
}
// Set http status message
self::_setHttpStatusMessage($oModule->getHttpStatusCode());
// Display contents
$oDisplayHandler = new DisplayHandler();
$oDisplayHandler->printContent($oModule);