]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/sponsor_functions.php
All, except security block, include()/require() rewritten to own LOAD_INC()/LOAD_INC_...
[mailer.git] / inc / libs / sponsor_functions.php
index 1bc1c7ed7f589048c1932df62c4f9c763ae72ffc..48300f1b1d772e12af40d6a5594530d51b634df9 100644 (file)
@@ -354,10 +354,10 @@ function GENERATE_SPONSOR_CONTENT($what)
 {
        global $_CONFIG;
        $OUT = "";
-       $FILE = sprintf("%sinc/modules/sponsor/%s.php", PATH, $what);
-       if (FILE_READABLE($FILE)) {
+       $INC = sprintf("inc/modules/sponsor/%s.php", $what);
+       if (FILE_READABLE($INC)) {
                // Every sponsor action will output nothing directly. It will be written into $OUT!
-               require_once($FILE);
+               LOAD_INC_ONCE($INC);
        } else {
                // File not found!
                $OUT .= LOAD_TEMPLATE("admin_settings_saved", true, SPONSOR_CONTENT_404_1.$what.SPONSOR_CONTENT_404_2);