From: Roland Häder Date: Wed, 3 Nov 2010 23:04:00 +0000 (+0000) Subject: Fix/Rewrite for getMaskedMessage() error, thanks to meinnimbuzz X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=626d46112349bc87ad5f64b8c16d9954144bff07;p=mailer.git Fix/Rewrite for getMaskedMessage() error, thanks to meinnimbuzz --- diff --git a/inc/modules/login.php b/inc/modules/login.php index 4e91d9ede5..fca747b2ba 100644 --- a/inc/modules/login.php +++ b/inc/modules/login.php @@ -39,9 +39,8 @@ if (!defined('__SECURITY')) { die(); } elseif (!isMember()) { - $url = 'modules.php?module=index'; - if (checkModulePermissions('login') == 'mem_only') $url .= '&code=' . getCode('MODULE_MEMBER_ONLY') . '&mod=' . getModule(); - redirectToUrl($url); + // Redirect to login form with displayed error code + redirectToUrl('modules.php?module=index&what=login&code=' . getCode('MODULE_MEMBER_ONLY') . '&mod=' . getModule()); } // END - if // Disable block mode by default diff --git a/inc/modules/member/what-order.php b/inc/modules/member/what-order.php index f891d0609f..2dff54b522 100644 --- a/inc/modules/member/what-order.php +++ b/inc/modules/member/what-order.php @@ -671,7 +671,7 @@ LIMIT 1", } } else { // Please confirm some mails first - loadTemplate('admin_settings_saved', false, getMaskedMessage('MEMBER_LINKS_LEFT'), $links); + loadTemplate('admin_settings_saved', false, '{%message,MEMBER_LINKS_LEFT=' . $links . '%}', $links); } if (!empty($url)) {