Permalink
Browse files

[Fix] "This forum is protected." when reply does not have a subject (…

…Bug: #901)
  • Loading branch information...
1 parent 2d26778 commit 2bcbf03563065a5190966c4ef1a8a59bde0eb2c9 @nickvergessen nickvergessen committed Sep 29, 2011
Showing with 9 additions and 0 deletions.
  1. +8 −0 install.xml
  2. +1 −0 root/includes/mods/advanced_last_topic_titles.php
View
@@ -40,6 +40,14 @@
</link-group>
<history>
+ <entry>
+ <date>2011-MM-DD</date>
+ <rev-version>1.3.3</rev-version>
+ <changelog lang="en">
+ <change><![CDATA[[Fix] "This forum is protected." when reply does not have a subject (Bug: #901)]]></change>
+ </changelog>
+ </entry>
+
<entry>
<date>2011-05-25</date>
<rev-version>1.3.2</rev-version>
@@ -184,6 +184,7 @@ static public function display_information($row)
global $template, $phpbb_root_path, $phpEx;
$altt_link_name = (self::$use_topic_title) ? $row['topic_title'] : $row['forum_last_post_subject'];
+ $altt_link_name = ($altt_link_name == '') ? 'Re: ' . $row['topic_title'] : $altt_link_name;
$altt_link_name_short = (utf8_strlen(htmlspecialchars_decode($altt_link_name)) > self::$length_limit + 3 )? htmlspecialchars((utf8_substr(htmlspecialchars_decode($altt_link_name), 0, self::$length_limit) . '...')) : ($altt_link_name);
$real_topic_id = ($row['topic_moved_id']) ? $row['topic_moved_id'] : $row['topic_id'];

0 comments on commit 2bcbf03

Please sign in to comment.