X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Faction-surfbar.php;h=90b42463c3797f1967fd9cbbb55049fce960b433;hb=1cf72a9c1a5e737509af79d49f0731da2eb6a218;hp=c9eff8b4c3212973842f6078fc2b3426c9c5917e;hpb=7f104f6fe558bb56b4205241435a2357c2feece1;p=mailer.git diff --git a/inc/modules/admin/action-surfbar.php b/inc/modules/admin/action-surfbar.php index c9eff8b4c3..90b42463c3 100644 --- a/inc/modules/admin/action-surfbar.php +++ b/inc/modules/admin/action-surfbar.php @@ -38,15 +38,15 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) { } // Add description as navigation point -ADD_DESCR("admin", basename(__FILE__)); +ADD_DESCR("admin", __FILE__); // Load the include file -$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, $GLOBALS['what']); +$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what'])); if (FILE_READABLE($INC)) { // Ok, we finally load the admin action module - include($INC); + LOAD_INC($INC); } else { - ADD_FATAL(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2); + addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']); } //