Completed
Push — master ( df4c3b...3cdc94 )
by Tobias
05:40
created
event/extensions.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 		$tpl_ary = $event['tpl_ary'];
54 54
 		$u_view_topic = $this->base->generate_topic_link($event['row']['forum_id'], $event['row']['forum_name'], $event['row']['topic_id'], $event['row']['topic_title']);
55 55
 		$tpl_ary['U_VIEW_TOPIC'] = append_sid($u_view_topic);
56
-		$tpl_ary['U_LAST_POST'] = append_sid($this->base->generate_lastpost_link($tpl_ary['REPLIES'], $u_view_topic) . '#p' . $event['row']['topic_last_post_id']);
56
+		$tpl_ary['U_LAST_POST'] = append_sid($this->base->generate_lastpost_link($tpl_ary['REPLIES'], $u_view_topic).'#p'.$event['row']['topic_last_post_id']);
57 57
 		$tpl_ary['U_VIEW_FORUM'] = append_sid($this->base->generate_forum_link($event['row']['forum_id'], $event['row']['forum_name']));
58 58
 
59 59
 		$event['tpl_ary'] = $tpl_ary;
@@ -74,14 +74,14 @@  discard block
 block discarded – undo
74 74
 			return;
75 75
 		}
76 76
 
77
-		$url_data =$event['url_data'] ;
77
+		$url_data = $event['url_data'];
78 78
 
79 79
 		foreach ($url_data as $id => $data)
80 80
 		{
81 81
 			$row = $data['row'];
82 82
 			if (isset($row['topic_id']))
83 83
 			{
84
-				$url_data[$id]['url'] = $this->base->generate_topic_link($row['forum_id'], $row['forum_name'], $row['topic_id'], $row['topic_title'],  $data['start'], true);
84
+				$url_data[$id]['url'] = $this->base->generate_topic_link($row['forum_id'], $row['forum_name'], $row['topic_id'], $row['topic_title'], $data['start'], true);
85 85
 			}
86 86
 			else if (isset($row['forum_id']))
87 87
 			{
@@ -107,10 +107,10 @@  discard block
 block discarded – undo
107 107
 		$this->topic_id = $event['row']['topic_id'];
108 108
 
109 109
 		$topic_row = $event['topic_row'];
110
-		$u_view_topic= $this->base->generate_topic_link($this->forum_id, $this->forum_title, $this->topic_id, $this->topic_title);
110
+		$u_view_topic = $this->base->generate_topic_link($this->forum_id, $this->forum_title, $this->topic_id, $this->topic_title);
111 111
 		$topic_row['U_VIEW_TOPIC'] = append_sid($u_view_topic);
112 112
 		$topic_row['U_VIEW_FORUM'] = append_sid($this->base->generate_forum_link($this->forum_id, $this->forum_title));
113
-		$topic_row['U_LAST_POST'] = append_sid($this->base->generate_lastpost_link($topic_row['TOPIC_REPLIES'], $u_view_topic) . '#p' . $event['row']['topic_last_post_id']);
113
+		$topic_row['U_LAST_POST'] = append_sid($this->base->generate_lastpost_link($topic_row['TOPIC_REPLIES'], $u_view_topic).'#p'.$event['row']['topic_last_post_id']);
114 114
 		$event['topic_row'] = $topic_row;
115 115
 	}
116 116
 
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 		$tpl_ary = $event['tpl_ary'];
142 142
 		$replies = $this->base->get_count('topic_posts', $event['row'], $event['row']['forum_id']) - 1;
143 143
 		$u_view_topic = $this->base->generate_topic_link($event['row']['forum_id'], $event['row']['forum_name'], $event['row']['topic_id'], $event['row']['topic_title']);
144
-		$tpl_ary['U_TOPIC'] = append_sid($this->base->generate_lastpost_link($replies, $u_view_topic) . '#p' . $event['row']['topic_last_post_id']);
144
+		$tpl_ary['U_TOPIC'] = append_sid($this->base->generate_lastpost_link($replies, $u_view_topic).'#p'.$event['row']['topic_last_post_id']);
145 145
 		$event['tpl_ary'] = $tpl_ary;
146 146
 	}
147 147
 }
Please login to merge, or discard this patch.