aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorDominik Dröscher <dhn2@users.sourceforge.net>2006-10-26 11:27:57 +0000
committerDominik Dröscher <dhn2@users.sourceforge.net>2006-10-26 11:27:57 +0000
commit6f4d0c4fa2f6e89a4d5cd83fb615706eb30892e9 (patch)
tree9cded3f21106d1453e46d39f6da0422c2b41362e /phpBB
parentcd3eaf0e178a5b1cc9e45f8df2d1648e63a965c2 (diff)
downloadforums-6f4d0c4fa2f6e89a4d5cd83fb615706eb30892e9.tar
forums-6f4d0c4fa2f6e89a4d5cd83fb615706eb30892e9.tar.gz
forums-6f4d0c4fa2f6e89a4d5cd83fb615706eb30892e9.tar.bz2
forums-6f4d0c4fa2f6e89a4d5cd83fb615706eb30892e9.tar.xz
forums-6f4d0c4fa2f6e89a4d5cd83fb615706eb30892e9.zip
#4696
Quoting from topic review should now work in FF 1.5.0.x. Note to Nils: We need a utf8_addslashes function. The standard addslashes will not cut it for UTF-8. :) git-svn-id: file:///svn/phpbb/trunk@6528 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions_posting.php3
-rw-r--r--phpBB/styles/subSilver/template/posting_topic_review.html2
2 files changed, 2 insertions, 3 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index fccad678a9..86e60a72e6 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -934,11 +934,10 @@ function topic_review($topic_id, $forum_id, $mode = 'topic_review', $cur_post_id
'POST_DATE' => $user->format_date($row['post_time']),
'MESSAGE' => $message,
'DECODED_MESSAGE' => $decoded_message,
-
'U_POST_ID' => $row['post_id'],
'U_MINI_POST' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'p=' . $row['post_id']) . '#p' . $row['post_id'],
'U_MCP_DETAILS' => ($auth->acl_get('m_info', $forum_id)) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main&amp;mode=post_details&amp;f=' . $forum_id . '&amp;p=' . $row['post_id'], true, $user->session_id) : '',
- 'U_QUOTE' => ($show_quote_button && $auth->acl_get('f_reply', $forum_id)) ? 'javascript:addquote(' . $row['post_id'] . ", '" . addslashes($poster) . "')" : '')
+ 'POSTER_QUOTE' => ($show_quote_button && $auth->acl_get('f_reply', $forum_id)) ? addslashes($poster) : '')
);
unset($rowset[$i]);
}
diff --git a/phpBB/styles/subSilver/template/posting_topic_review.html b/phpBB/styles/subSilver/template/posting_topic_review.html
index 6520ddb803..8b93d513a8 100644
--- a/phpBB/styles/subSilver/template/posting_topic_review.html
+++ b/phpBB/styles/subSilver/template/posting_topic_review.html
@@ -28,7 +28,7 @@
<td>&nbsp;</td>
<td class="gensmall" valign="middle" nowrap="nowrap"><b>{L_POST_SUBJECT}:</b>&nbsp;</td>
<td class="gensmall" width="100%" valign="middle">{topic_review_row.POST_SUBJECT}</td>
- <td valign="top" nowrap="nowrap">&nbsp;<!-- IF topic_review_row.U_QUOTE and topic_review_row.DECODED_MESSAGE --><a href="{topic_review_row.U_QUOTE}">{QUOTE_IMG}</a><!-- ENDIF --></td>
+ <td valign="top" nowrap="nowrap">&nbsp;<!-- IF topic_review_row.POSTER_QUOTE and topic_review_row.DECODED_MESSAGE --><a href="#" onclick="addquote({topic_review_row.U_POST_ID},'{topic_review_row.POSTER_QUOTE}'); return false;">{QUOTE_IMG}</a><!-- ENDIF --></td>
</tr>
</table>
</td>