Again more fixes from bugtracker, thanks to profi-concept
[mailer.git] / inc / modules / admin / what-logs.php
index 2496ac5035d199157fd77ffde7dffcf963995263..a5ce46945d6df2bd49cd4bc291a4646534fdf84e 100644 (file)
@@ -84,11 +84,11 @@ if (!empty($_GET['access'])) {
        }
 } else {
        // List access logfiles
-       $dir = PATH.LOGS_BASE."/";
+       $dir = PATH.getConfig('logs_base')."/";
        if (is_dir($dir)) {
                // logs directory does exist
                OUTPUT_HTML("<ol>");
-               $handle = opendir($dir) or mxchange_die("Cannot open directory ".LOGS_BASE."!");
+               $handle = opendir($dir) or mxchange_die("Cannot open directory ".getConfig('logs_base')."!");
                while ($file = readdir($handle)) {
                        // We currenly only like files with "access" as prefix, should be more flexible!
                        if (substr($file, 0, 6) == "access") {
@@ -100,7 +100,7 @@ if (!empty($_GET['access'])) {
                OUTPUT_HTML("</ol>");
        } else {
                // logs directory does not exist
-               LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_LOGS_DIR_404_1.LOGS_BASE.ADMIN_LOGS_DIR_404_2);
+               LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_LOGS_DIR_404_1.getConfig('logs_base').ADMIN_LOGS_DIR_404_2);
        }
 }