SimplePortal
Development => Feature Requests => Topic started by: AngelinaBelle on May 24, 2010, 03:12:14 PM
-
Because standalone portal also has a portal page we could be redirecting to.
if ((empty($setLocation) || $scripturl == $setLocation) && $modSettings['sp_portal_mode'] == 1 && empty($modSettings['sp_disableForumRedirect']))
$setLocation = 'action=forum';
if ( (empty($setLocation) || $scripturl == $setLocation) && in_array($modSettings['sp_portal_mode'], array(1,3)) )
if ( empty($modSettings['sp_disableForumRedirect']) )
{
$setLocation='action=forum';
}
else
{
$setLocation=$context['portal_url'];
$add = FALSE;
}
--------------------------
Edit: This is in redirectexit, in Subs.php
-
This should be a bug, not a feature. ;)
-
As pointed out by ccbtimewiz, this should be
if ( (empty($setLocation) || $scripturl == $setLocation) && in_array($modSettings['sp_portal_mode'], array(1,3)) )
if ( empty($modSettings['sp_disableForumRedirect']) )
{
$setLocation='action=forum';
}
else
{
$setLocation = (!empty($context['portal_url']) ? $context['portal_url'] : '');
$add = FALSE;
}