Add logging for component requests when the module does not exist

refs #4456
This commit is contained in:
Matthias Jentsch 2013-08-20 19:47:04 +02:00 committed by Marius Hein
parent 7353797147
commit 6aca723f6d
1 changed files with 3 additions and 0 deletions

View File

@ -117,6 +117,9 @@ class StaticController extends ActionController
$filePath = $basedir . $file;
} else {
if (!Icinga::app()->getModuleManager()->hasEnabled($module)) {
Logger::error(
'Non-existing frontend component "' . $module . '/' . $file
. '" was requested. The module "' . $module . '" does not exist or is not active.');
echo "/** Module not enabled **/";
return;
}