diff options
| author | Josh Woody <a_jelly_doughnut@phpbb.com> | 2010-07-29 13:19:19 -0500 |
|---|---|---|
| committer | Josh Woody <a_jelly_doughnut@phpbb.com> | 2010-07-29 13:19:19 -0500 |
| commit | 15d7010d4605a5f8d0082299a904ed54ad002618 (patch) | |
| tree | 1786a45556981c48424b767fd2384570cdd9d409 /phpBB/includes | |
| parent | fc25fe694afdab683789c9ed962c77558f85796c (diff) | |
| download | forums-15d7010d4605a5f8d0082299a904ed54ad002618.tar forums-15d7010d4605a5f8d0082299a904ed54ad002618.tar.gz forums-15d7010d4605a5f8d0082299a904ed54ad002618.tar.bz2 forums-15d7010d4605a5f8d0082299a904ed54ad002618.tar.xz forums-15d7010d4605a5f8d0082299a904ed54ad002618.zip | |
[ticket/9757] Fix empty template variable {HISTORY_TITLE}
The template variable {HISTORY_TITLE} was always being set to the empty string.
It is now filled with the title of the currently displayed message. It is not
showed in prosilver or subsilver2 for aesthetic reasons (title is already
prominent)
PHPBB3-9757
Diffstat (limited to 'phpBB/includes')
| -rw-r--r-- | phpBB/includes/functions_privmsgs.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_privmsgs.php b/phpBB/includes/functions_privmsgs.php index 4fc5034f7b..c4cbb7ca1e 100644 --- a/phpBB/includes/functions_privmsgs.php +++ b/phpBB/includes/functions_privmsgs.php @@ -1751,6 +1751,8 @@ function message_history($msg_id, $user_id, $message_row, $folder, $in_post_mode return false; } + $title = $row['message_subject']; + $rowset = array(); $bbcode_bitfield = ''; $folder_url = append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm') . '&folder='; @@ -1774,8 +1776,6 @@ function message_history($msg_id, $user_id, $message_row, $folder, $in_post_mode while ($row = $db->sql_fetchrow($result)); $db->sql_freeresult($result); - $title = $row['message_subject']; - if (sizeof($rowset) == 1 && !$in_post_mode) { return false; |
