]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-sponsor.php
A lot fixes to templates and missing functions added, more rewrites
[mailer.git] / inc / modules / member / what-sponsor.php
index 0360d6ecb0f701d4f763a2d8777d6d614e6e2f18..d2132f81594811d1177ec584573d1f97f9be9c04 100644 (file)
@@ -35,7 +35,10 @@ if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
        require($INC);
 } elseif (!IS_MEMBER()) {
-       LOAD_URL(URL."/modules.php?module=index");
+       LOAD_URL("modules.php?module=index");
+} elseif ((!EXT_IS_ACTIVE("sponsor")) && (!IS_ADMIN())) {
+       addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "sponsor");
+       return;
 }
 
 // Add description as navigation point