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
}
} else {
// Please confirm some mails first
- loadTemplate('admin_settings_saved', false, getMaskedMessage('MEMBER_LINKS_LEFT'), $links);
+ loadTemplate('admin_settings_saved', false, '<span class="notice">{%message,MEMBER_LINKS_LEFT=' . $links . '%}</span>', $links);
}
if (!empty($url)) {