]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/action-
More getModule() used, some SQL rewrites, constant __MODULE rewritten
[mailer.git] / inc / modules / admin / action-
index 1200c49dc93c997ef609a4239ca3b931caf981f3..1f76fd3313761e180dc23826e21d0c7ce1c37c21 100644 (file)
@@ -46,12 +46,12 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 ADD_DESCR('admin', __FILE__);
 
 // Load the include file
-$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
+$INC = sprintf("inc/modules/admin/what-%s.php", getWhat());
 if (isIncludeReadable($INC)) { 
        // Ok, we finally load the admin action module
        loadInclude($INC);
 } else {
-       addFatalMessage(__FILE__, __LINE__, ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('ADMIN_404_ACTION', getWhat())));
 }
 
 //