Do not catch all exceptions in index.php

This commit is contained in:
Kijin Sung 2016-02-12 14:15:06 +09:00
parent 664695553b
commit 48a570615a

View file

@ -53,18 +53,9 @@ if($oContext->checkSSO())
{ {
$oModuleHandler = new ModuleHandler(); $oModuleHandler = new ModuleHandler();
try if($oModuleHandler->init())
{ {
if($oModuleHandler->init()) $oModuleHandler->displayContent($oModuleHandler->procModule());
{
$oModuleHandler->displayContent($oModuleHandler->procModule());
}
}
catch(Exception $e)
{
htmlHeader();
echo Context::getLang($e->getMessage());
htmlFooter();
} }
} }