diff --git a/htdocs/admin/modulehelp.php b/htdocs/admin/modulehelp.php
index cbf9ac6fba6..8ef166d933c 100644
--- a/htdocs/admin/modulehelp.php
+++ b/htdocs/admin/modulehelp.php
@@ -200,7 +200,7 @@ foreach ($modulesdir as $dir) {
dol_syslog("Failed to load ".$dir.$file." ".$e->getMessage(), LOG_ERR);
}
} else {
- print "Warning bad descriptor file : ".$dir.$file." (Class ".$modName." not found into file)
";
+ print info_admin("Warning bad descriptor file : ".$dir.$file." (Class ".$modName." not found into file)", 0, 0, '1', 'warning');
}
} catch (Exception $e) {
dol_syslog("Failed to load ".$dir.$file." ".$e->getMessage(), LOG_ERR);
diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php
index 27d0b5c0581..62c612ab24a 100644
--- a/htdocs/admin/modules.php
+++ b/htdocs/admin/modules.php
@@ -485,7 +485,7 @@ foreach ($modulesdir as $dir) {
dol_syslog("Module ".get_class($objMod)." not qualified");
}
} else {
- print "admin/modules.php Warning bad descriptor file : ".$dir.$file." (Class ".$modName." not found into file)
";
+ print info_admin("admin/modules.php Warning bad descriptor file : ".$dir.$file." (Class ".$modName." not found into file)", 0, 0, '1', 'warning');
}
} catch (Exception $e) {
dol_syslog("Failed to load ".$dir.$file." ".$e->getMessage(), LOG_ERR);
diff --git a/htdocs/admin/system/modules.php b/htdocs/admin/system/modules.php
index 4cd42fe0243..94c29927cb9 100644
--- a/htdocs/admin/system/modules.php
+++ b/htdocs/admin/system/modules.php
@@ -67,7 +67,7 @@ $arrayfields = array(
$arrayfields = dol_sort_array($arrayfields, 'position');
$param = '';
-
+$info_admin = '';
/*
* Actions
@@ -120,7 +120,7 @@ foreach ($modulesdir as $dir) {
dol_syslog("Failed to load ".$dir.$file." ".$e->getMessage(), LOG_ERR);
}
} else {
- print "Warning bad descriptor file : ".$dir.$file." (Class ".$modName." not found into file)
";
+ $info_admin .= info_admin("Warning bad descriptor file : ".$dir.$file." (Class ".$modName." not found into file)", 0, 0, '1', 'warning');
}
}
}
@@ -202,7 +202,7 @@ foreach ($modules as $key => $module) {
*/
llxHeader();
-
+print $info_admin;
print '