Changes related to altered this->page content

git-svn-id: file:///svn/phpbb/trunk@3551 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2003-02-26 19:29:22 +00:00
parent c190ad2370
commit fa8fd70cbc

View file

@ -109,7 +109,7 @@ while ($row = $db->sql_fetchrow($result))
if ($view_online) if ($view_online)
{ {
preg_match('/\/?([a-z]+)\.' . $phpEx . '/', $row['session_page'], $on_page); preg_match('#([a-z]+)#', $row['session_page'], $on_page);
switch ($on_page[1]) switch ($on_page[1])
{ {
@ -130,15 +130,29 @@ while ($row = $db->sql_fetchrow($result))
switch ($on_page[1]) switch ($on_page[1])
{ {
case 'posting': case 'posting':
$location = sprintf($user->lang['Posting_message'], $forum_data[$forum_id]); preg_match('#mode=([a-z]+)#', $row['session_page'], $on_page);
switch ($on_page[1])
{
case 'reply':
case 'topicreview':
$location = sprintf($user->lang['REPLYING_MESSAGE'], $forum_data[$forum_id]);
break;
default:
$location = sprintf($user->lang['POSTING_MESSAGE'], $forum_data[$forum_id]);
break;
}
break; break;
case 'viewtopic': case 'viewtopic':
$location = sprintf($user->lang['Reading_topic'], $forum_data[$forum_id]); $location = sprintf($user->lang['READING_TOPIC'], $forum_data[$forum_id]);
break; break;
case 'viewforum': case 'viewforum':
$location .= $forum_data[$forum_id]; $location .= sprintf($user->lang['READING_FORUM'], $forum_data[$forum_id]);
break; break;
} }
$location_url = "viewforum.$phpEx$SID&f=$forum_id"; $location_url = "viewforum.$phpEx$SID&f=$forum_id";
} }
else else