mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +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;
|
||||
} 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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user