mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 01:04:09 +02:00
Add logging for component requests when the module does not exist
refs #4456
This commit is contained in:
parent
7353797147
commit
6aca723f6d
@ -117,6 +117,9 @@ class StaticController extends ActionController
|
|||||||
$filePath = $basedir . $file;
|
$filePath = $basedir . $file;
|
||||||
} else {
|
} else {
|
||||||
if (!Icinga::app()->getModuleManager()->hasEnabled($module)) {
|
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 **/";
|
echo "/** Module not enabled **/";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user