X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fsponsor.php;h=2ccd61cfdb17bb52a06952b479c2e670c8382d40;hb=cf911469f718afb27ef9d239d375c7fe002cdc5e;hp=8fe2cba80d417383cbe912ea993671912099b8da;hpb=09f5758c42a33a56bdd461c946ffe759a59c54aa;p=mailer.git diff --git a/inc/modules/sponsor.php b/inc/modules/sponsor.php index 8fe2cba80d..2ccd61cfdb 100644 --- a/inc/modules/sponsor.php +++ b/inc/modules/sponsor.php @@ -14,11 +14,9 @@ * $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 * + * Copyright (c) 2009 - 2011 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software. You can redistribute it and/or modify * @@ -40,15 +38,15 @@ if (!defined('__SECURITY')) { die(); } elseif ((!isExtensionActive('sponsor'))) { - loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('sponsor')); + displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=sponsor%}'); 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'); + debug_report_bug(__FUNCTION__, __LINE__, 'what is empty.'); } // A valid sponsor login and we are allowed to enter this module so let's @@ -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);