mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 16:08:55 +02:00
Remove all unneeded if($debug)-statements and replace them with d_echo in the rest of the directories...
This commit is contained in:
@@ -8,9 +8,7 @@ if ($include_dir_regexp == '' || !isset($include_dir_regexp)) {
|
||||
if ($handle = opendir($config['install_dir'].'/'.$include_dir)) {
|
||||
while (false !== ($file = readdir($handle))) {
|
||||
if (filetype($config['install_dir'].'/'.$include_dir.'/'.$file) == 'file' && preg_match($include_dir_regexp, $file)) {
|
||||
if ($debug) {
|
||||
echo 'Including: '.$config['install_dir'].'/'.$include_dir.'/'.$file."\n";
|
||||
}
|
||||
d_echo('Including: '.$config['install_dir'].'/'.$include_dir.'/'.$file."\n");
|
||||
|
||||
include $config['install_dir'].'/'.$include_dir.'/'.$file;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user