aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorTom Beddard <subblue@users.sourceforge.net>2006-01-04 20:57:34 +0000
committerTom Beddard <subblue@users.sourceforge.net>2006-01-04 20:57:34 +0000
commit636ab0f5ea0fb55d8cafa8aea55babae2f7c7e34 (patch)
treefe714a85abe78c664fa1b8eb6a463b5789aac906 /phpBB/includes
parentd23a07dc7dc4248180d451bce584a47f7defd737 (diff)
downloadforums-636ab0f5ea0fb55d8cafa8aea55babae2f7c7e34.tar
forums-636ab0f5ea0fb55d8cafa8aea55babae2f7c7e34.tar.gz
forums-636ab0f5ea0fb55d8cafa8aea55babae2f7c7e34.tar.bz2
forums-636ab0f5ea0fb55d8cafa8aea55babae2f7c7e34.tar.xz
forums-636ab0f5ea0fb55d8cafa8aea55babae2f7c7e34.zip
Updated references to posts to be #p[post_id] rather than #[post_id] since it is against the W3C spec to have the id="" attribute starting with a number
git-svn-id: file:///svn/phpbb/trunk@5424 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_display.php2
-rw-r--r--phpBB/includes/functions_posting.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index 647fb0f972..5c6eceba2a 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -291,7 +291,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
$last_poster = ($row['forum_last_poster_name'] != '') ? $row['forum_last_poster_name'] : $user->lang['GUEST'];
$last_poster_url = ($row['forum_last_poster_id'] == ANONYMOUS) ? '' : "{$phpbb_root_path}memberlist.$phpEx$SID&amp;mode=viewprofile&amp;u={$row['forum_last_poster_id']}";
- $last_post_url = "{$phpbb_root_path}viewtopic.$phpEx$SID&amp;f=" . $row['forum_id_last_post'] . '&amp;p=' . $row['forum_last_post_id'] . '#' . $row['forum_last_post_id'];
+ $last_post_url = "{$phpbb_root_path}viewtopic.$phpEx$SID&amp;f=" . $row['forum_id_last_post'] . '&amp;p=' . $row['forum_last_post_id'] . '#p' . $row['forum_last_post_id'];
}
else
{
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 8834a7161a..fca40559a9 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -814,7 +814,7 @@ function topic_review($topic_id, $forum_id, $mode = 'topic_review', $cur_post_id
'MESSAGE' => str_replace("\n", '<br />', $message),
'U_POST_ID' => $row['post_id'],
- 'U_MINI_POST' => "{$phpbb_root_path}viewtopic.$phpEx$SID&amp;p=" . $row['post_id'] . '#' . $row['post_id'],
+ 'U_MINI_POST' => "{$phpbb_root_path}viewtopic.$phpEx$SID&amp;p=" . $row['post_id'] . '#p' . $row['post_id'],
'U_MCP_DETAILS' => ($auth->acl_get('m_', $forum_id)) ? "{$phpbb_root_path}mcp.$phpEx$SID&amp;mode=post_details&amp;p=" . $row['post_id'] : '',
'U_QUOTE' => ($show_quote_button && $auth->acl_get('f_quote', $forum_id)) ? 'javascript:addquote(' . $row['post_id'] . ", '" . str_replace("'", "\\'", $poster) . "')" : '')
);