]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/action-theme.php
admin_new_ext.tpl now resists in right folder, some minor changes
[mailer.git] / inc / modules / admin / action-theme.php
index 651d82ad4b1aa9cb450debd242a82189d4763d74..527b6126fea34400092cb41e54bb1f6ec8e6dcf8 100644 (file)
@@ -42,15 +42,13 @@ if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
 ADD_DESCR("admin", basename(__FILE__));
 
 // Load the include file
-$INC = sprintf(PATH."inc/modules/admin/what-%s.php", $GLOBALS['what']);
-if (file_exists($INC))
-{
+$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, $GLOBALS['what']);
+if (FILE_READABLE($INC)) {
        // Ok, we finally load the admin action module
        include($INC);
-}
- else
-{
+} else {
        ADD_FATAL(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
 }
+
 //
 ?>