Newer sponsor scripts found in backup\! :D :D
[mailer.git] / inc / modules / admin / action-sponsor.php
index 0306396d08bacb0bf450535068442c600cf0b364..b4cbba35c9187ff151e9bd89a39ed68a06d291ce 100644 (file)
@@ -41,15 +41,12 @@ if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
 ADD_DESCR("admin", basename(__FILE__));
 
 // Load the include file
-$INC = PATH."inc/modules/admin/what-".$what.".php";
-if (file_exists($INC))
-{
+$INC = sprintf(PATH."inc/modules/admin/what-%s.php", $GLOBALS['what']);
+if (file_exists($INC)) {
        // Ok, we finally load the admin action module
        include($INC);
-}
- else
-{
-       $FATAL[] = ADMIN_404_ACTION_1.$what.ADMIN_404_ACTION_2;
+} else {
+       $FATAL[] = ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2;
 }
 //
 ?>