]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/action-sponsor.php
All, except security block, include()/require() rewritten to own LOAD_INC()/LOAD_INC_...
[mailer.git] / inc / modules / guest / action-sponsor.php
index 30b6a5230965d694a1bb9a752506221b786084f4..d2a0a9c9eb912cb946f93273ef110dc5a79010ae 100644 (file)
@@ -46,10 +46,10 @@ if (!defined('__SECURITY')) {
 ADD_DESCR("guest", __FILE__);
 
 // Load the include file
-$INC = sprintf("%sinc/modules/guest/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
+$INC = sprintf("inc/modules/guest/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
 if (FILE_READABLE($INC)) {
        // Ok, we finally load the guest action module
-       require($INC);
+       LOAD_INC($INC);
 } elseif ($IS_VALID) {
        addFatalMessage(sprintf(getMessage('GUEST_404_ACTION'), SQL_ESCAPE($GLOBALS['what'])));
 } else {