]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/sponsor.php
Renamed function so it might be more understandable
[mailer.git] / inc / modules / sponsor.php
index 8fe2cba80d417383cbe912ea993671912099b8da..ea7c2c1ece36c65c837054ae307c90fc14cb20c3 100644 (file)
@@ -14,8 +14,6 @@
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
@@ -44,9 +42,9 @@ if (!defined('__SECURITY')) {
        return;
 } elseif (!isSponsor()) {
        // No sponsor!
-       addFatalMessage(__FILE__, __LINE__, getMessage('SPONSOR_ONLY_AREA_ENTERED'));
+       addFatalMessage(__FILE__, __LINE__, '{--SPONSOR_ONLY_AREA_ENTERED--}');
        return;
-} elseif (!isWhatSet()) {
+} elseif ((!isWhatSet()) || (getWhat() == '')) {
        // Empty what value detected!
        setWhat('welcome');
 }
@@ -68,7 +66,7 @@ $content['header'] = loadTemplate('sponsor_header', true);
 $content['footer'] = loadTemplate('sponsor_footer', true);
 
 // 'You are here' navigation
-$content['you_are_here'] = addMenuDescription('sponsor', getWhat(), true);
+$content['you_are_here'] = addYouAreHereLink('sponsor', getWhat(), true);
 
 // Load main sponsor template
 loadTemplate('sponsor_main', false, $content);