]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/action-sponsor.php
Final fixes for password reset behavior on sql_patches removal :)
[mailer.git] / inc / modules / guest / action-sponsor.php
index 3485b82deb46c35253c0dc2e405e16ef83d75d18..de40dbc7152aea6df5e38695bf1a0d4aba5773db 100644 (file)
@@ -41,15 +41,12 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
 ADD_DESCR("guest", basename(__FILE__));
 
 // Load the include file
-$INC = PATH."inc/modules/guest/what-".$what.".php";
-if (file_exists($INC))
-{
+$INC = sprintf("%sinc/modules/guest/what-%s.php", PATH, $GLOBALS['what']);
+if (file_exists($INC)) {
        // Ok, we finally load the guest action module
        include($INC);
-}
- else
-{
-       $FATAL[] = GUEST_404_ACTION_1.$what.GUEST_404_ACTION_2;
+} else {
+       $FATAL[] = GUEST_404_ACTION_1.$GLOBALS['what'].GUEST_404_ACTION_2;
 }
 //
 ?>