X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-logs.php;h=93e2d1c8f3d003613db432132b4ed0e6b971d48a;hb=cc59ea1cce3e0fafc2cc6c9e36142698cf2b58ef;hp=c69492f710c279e2d39d7c2fffdc2268c314a0ee;hpb=72288d31358f8061513f8d3d61a1f9e7feb44e50;p=mailer.git diff --git a/inc/modules/admin/what-logs.php b/inc/modules/admin/what-logs.php index c69492f710..93e2d1c8f3 100644 --- a/inc/modules/admin/what-logs.php +++ b/inc/modules/admin/what-logs.php @@ -1,7 +1,7 @@ '); + outputHtml('
    '); // Read all files - $files = getArrayFromDirectory(getConfig('logs_base'), 'access'); - - // And walk through them - foreach ($files as $file) { + foreach (getArrayFromDirectory(getConfig('logs_base'), 'access') as $file) { // Cut dirname away $file = basename($file); // Okay, add it - OUTPUT_HTML("
  1. ".$file."
  2. "); + outputHtml('
  3. ' . $file . '
  4. '); } // END - foreach // Finish list - OUTPUT_HTML('
'); + outputHtml(''); } else { // logs directory does not exist - LOAD_TEMPLATE('admin_settings_saved', false, sprintf(getMessage('ADMIN_LOGS_DIR_404'), getConfig('logs_base'))); + displayMessage('{--ADMIN_LOGS_DIR_404--}'); } }