|
@@ 121-130 (lines=10) @@
|
| 118 |
|
* @return null |
| 119 |
|
* @access public |
| 120 |
|
*/ |
| 121 |
|
public function display_forums_modify_sql($event) |
| 122 |
|
{ |
| 123 |
|
$sql_array = $event['sql_ary']; |
| 124 |
|
$sql_array['LEFT_JOIN'][] = array( |
| 125 |
|
'FROM' => array(TOPICS_TABLE => 't'), |
| 126 |
|
'ON' => "f.forum_last_post_id = t.topic_last_post_id" |
| 127 |
|
); |
| 128 |
|
$sql_array['SELECT'] .= ', t.topic_title, t.topic_id, t.topic_posts_approved, t.topic_posts_unapproved, t.topic_posts_softdeleted'; |
| 129 |
|
$event['sql_ary'] = $sql_array; |
| 130 |
|
} |
| 131 |
|
|
| 132 |
|
/** |
| 133 |
|
* Store informations for the last post in forum_rows array |
|
@@ 344-350 (lines=7) @@
|
| 341 |
|
* @return null |
| 342 |
|
* @access public |
| 343 |
|
*/ |
| 344 |
|
public function viewforum_get_shadowtopic_data($event) |
| 345 |
|
{ |
| 346 |
|
$sql_array = $event['sql_array']; |
| 347 |
|
$sql_array['SELECT'] .= ', f.forum_name'; |
| 348 |
|
$sql_array['LEFT_JOIN'][] = array('FROM' => array(FORUMS_TABLE => 'f'), 'ON' => 'f.forum_id = t.forum_id'); |
| 349 |
|
$event['sql_array'] = $sql_array; |
| 350 |
|
} |
| 351 |
|
|
| 352 |
|
/** |
| 353 |
|
* Rewrite the canonical URL on viewforum.php |