]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-themes.php
Global variables rewritten
[mailer.git] / inc / modules / member / what-themes.php
index 338da85988e08363d416f34b79e2bc839c734173..cf10a10eab7a7b62bc51f8190c313c2f87b8d108 100644 (file)
@@ -71,12 +71,12 @@ $THEMES = array(
 );
 
 // Read directory "themes"
-$handle = opendir(PATH."theme/") or mxchange_die("Cannot read themes dir!");
+$handle = opendir(constant('PATH')."theme/") or mxchange_die("Cannot read themes dir!");
 while ($entry = readdir($handle)) {
        // Construct absolute theme.php file name
        $INC = sprintf("theme/%s/theme.php", $entry);
 
-       if (($entry != ".") && ($entry != "..") && (FILE_READABLE($INC)) && (THEME_IS_ACTIVE($entry))) {
+       if (($entry != ".") && ($entry != "..") && (INCLUDE_READABLE($INC)) && (THEME_IS_ACTIVE($entry))) {
                // Found a valid directory so let's load it's theme.php file
                LOAD_INC($INC);