Fixed a typo, thanks to profi-concept. Function INCLUDE_READABLE() introduced
[mailer.git] / inc / modules / admin / what-theme_import.php
index f3c3dd0f97490f3b87ddeca8e23a2d04435cf69c..045e925e2bb630f89d9d7a9b75727773edbf22fe 100644 (file)
@@ -52,7 +52,7 @@ if (!empty($_POST['theme'])) {
        if (!THEME_CHECK_EXIST($_POST['theme'])) {
                // Import theme
                $INC = sprintf("theme/%s/theme.php", SQL_ESCAPE($_POST['theme']));
-               if (FILE_READABLE($INC)) {
+               if (INCLUDE_READABLE($INC)) {
                        // Load the theme header file
                        LOAD_INC($INC);
 
@@ -96,7 +96,7 @@ while ($dir = readdir($handle)) {
        $INC = sprintf("theme/%s/theme.php", $dir);
 
        // Test it...
-       if (($dir != ".") && ($dir != "..") && (FILE_READABLE($INC))) {
+       if (($dir != ".") && ($dir != "..") && (INCLUDE_READABLE($INC))) {
                // Found a valid directory so let's load it's theme.php file
                LOAD_INC($INC);