From: Roland Häder Date: Mon, 25 Jun 2012 23:02:44 +0000 (+0000) Subject: getArrayFromDirectory() does now exclude files with size below 50 Bytes which always... X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=1d6211aa6e979663f2235c6f94b5aae09754c915 getArrayFromDirectory() does now exclude files with size below 50 Bytes which always indicates that the file is deprecated --- diff --git a/inc/functions.php b/inc/functions.php index 90f2b6d378..be6123f558 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1872,6 +1872,9 @@ function getArrayFromDirectory ($baseDir, $prefix, $fileIncludeDirs = false, $ad } elseif (!isFileReadable($FQFN)) { // Not readable so skip it //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'File ' . $FQFN . ' is not readable!'); + } elseif (filesize($FQFN) < 50) { + // Might be deprecated + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'File ' . $FQFN . ' is to small (' . filesize($FQFN) . ')!'); continue; } diff --git a/inc/inc-functions.php b/inc/inc-functions.php index ece36ddfa9..8d3a036efe 100644 --- a/inc/inc-functions.php +++ b/inc/inc-functions.php @@ -121,7 +121,7 @@ function loadInclude ($inc) { // Is the include file there? if (!isIncludeReadable($inc)) { // Not there so log it - debug_report_bug(__FUNCTION__, __LINE__, sprintf("Include file %s not found.", $inc)); + debug_report_bug(__FUNCTION__, __LINE__, sprintf("Include file %s not found or deprecated.", $inc)); } // END - if } // END - if