Remove all unneeded if($debug)-statements and replace them with d_echo in the rest of the directories...

This commit is contained in:
Mark Schouten
2015-08-21 16:10:01 +02:00
parent 677a4f3f5f
commit 4792879ce5
10 changed files with 22 additions and 59 deletions
+1 -3
View File
@@ -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;
}