mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
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:
parent
c190ad2370
commit
fa8fd70cbc
1 changed files with 18 additions and 4 deletions
|
@ -109,7 +109,7 @@ while ($row = $db->sql_fetchrow($result))
|
|||
|
||||
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])
|
||||
{
|
||||
|
@ -130,15 +130,29 @@ while ($row = $db->sql_fetchrow($result))
|
|||
switch ($on_page[1])
|
||||
{
|
||||
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;
|
||||
case 'viewtopic':
|
||||
$location = sprintf($user->lang['Reading_topic'], $forum_data[$forum_id]);
|
||||
break;
|
||||
case 'viewforum':
|
||||
$location .= $forum_data[$forum_id];
|
||||
default:
|
||||
$location = sprintf($user->lang['POSTING_MESSAGE'], $forum_data[$forum_id]);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case 'viewtopic':
|
||||
$location = sprintf($user->lang['READING_TOPIC'], $forum_data[$forum_id]);
|
||||
break;
|
||||
|
||||
case 'viewforum':
|
||||
$location .= sprintf($user->lang['READING_FORUM'], $forum_data[$forum_id]);
|
||||
break;
|
||||
}
|
||||
|
||||
$location_url = "viewforum.$phpEx$SID&f=$forum_id";
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue