@@ -26,10 +26,10 @@ public function __autoload($class_name)
2626 require $ this ->feather ->forum_env ['FEATHER_ROOT ' ] . $ class_name . '.php ' ;
2727 }
2828
29- public function display ($ id , $ name = null , $ page = null )
29+ public function display ($ fid , $ name = null , $ page = null )
3030 {
3131 // Fetch some informations about the forum
32- $ cur_forum = $ this ->model ->get_info_forum ($ id );
32+ $ cur_forum = $ this ->model ->get_info_forum ($ fid );
3333
3434 // Is this a redirect forum? In that case, redirect!
3535 if ($ cur_forum ['redirect_url ' ] != '' ) {
@@ -45,7 +45,7 @@ public function display($id, $name = null, $page = null)
4545
4646 // Can we or can we not post new topics?
4747 if (($ cur_forum ['post_topics ' ] == '' && $ this ->feather ->user ->g_post_topics == '1 ' ) || $ cur_forum ['post_topics ' ] == '1 ' || $ is_admmod ) {
48- $ post_link = "\t\t\t" .'<p class="postlink conr"><a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3C%2Fspan%3E%27%3C%2Fspan%3E.%3Cspan+class%3D"x x-first">Url:: get ( ' post/new-topic/ ' . $ id . ' / ' ).'"> ' .__ ('Post topic ' ).'</a></p> ' ."\n" ;
48+ $ post_link = "\t\t\t" .'<p class="postlink conr"><a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3C%2Fspan%3E%27%3C%2Fspan%3E.%3Cspan+class%3D"pl-s1">$ this -> feather -> urlFor ( ' newTopic ' , [ ' fid ' => $ fid ] ).'"> ' .__ ('Post topic ' ).'</a></p> ' ."\n" ;
4949 } else {
5050 $ post_link = '' ;
5151 }
@@ -58,24 +58,24 @@ public function display($id, $name = null, $page = null)
5858 $ url_forum = Url::url_friendly ($ cur_forum ['forum_name ' ]);
5959
6060 // Generate paging links
61- $ paging_links = '<span class="pages-label"> ' .__ ('Pages ' ).' </span> ' .Url::paginate ($ num_pages , $ p , 'forum/ ' .$ id .'/ ' .$ url_forum .'/# ' );
61+ $ paging_links = '<span class="pages-label"> ' .__ ('Pages ' ).' </span> ' .Url::paginate ($ num_pages , $ p , 'forum/ ' .$ fid .'/ ' .$ url_forum .'/# ' );
6262
63- $ forum_actions = $ this ->model ->get_forum_actions ($ id , $ this ->feather ->forum_settings ['o_forum_subscriptions ' ], $ cur_forum ['is_subscribed ' ]);
63+ $ forum_actions = $ this ->model ->get_forum_actions ($ fid , $ this ->feather ->forum_settings ['o_forum_subscriptions ' ], $ cur_forum ['is_subscribed ' ]);
6464
65- $ this ->feather ->template ->addAsset ('canonical ' , Url:: get ( ' forum/ ' . $ id . ' / ' . $ url_forum . ' / ' ));
65+ $ this ->feather ->template ->addAsset ('canonical ' , $ this -> feather -> urlFor ( ' Forum ' , [ ' id ' => $ fid , ' name ' => $ url_forum ] ));
6666 if ($ num_pages > 1 ) {
6767 if ($ p > 1 ) {
68- $ this ->feather ->template ->addAsset ('prev ' , Url:: get ( ' forum/ ' . $ id . ' / ' . $ url_forum. ' / page/ ' . ($ p - 1 ). ' / ' ));
68+ $ this ->feather ->template ->addAsset ('prev ' , $ this -> feather -> urlFor ( ' ForumPaginate ' , [ ' id ' => $ fid , ' name ' => $ url_forum, ' page ' => intval ($ p- 1 )] ));
6969 }
7070 if ($ p < $ num_pages ) {
71- $ this ->feather ->template ->addAsset ('next ' , Url:: get ( ' forum/ ' . $ id . ' / ' . $ url_forum. ' / page/ ' . ($ p + 1 ). ' / ' ));
71+ $ this ->feather ->template ->addAsset ('next ' , $ this -> feather -> urlFor ( ' ForumPaginate ' , [ ' id ' => $ fid , ' name ' => $ url_forum, ' page ' => intval ($ p+ 1 )] ));
7272 }
7373 }
7474
7575 if ($ this ->feather ->forum_settings ['o_feed_type ' ] == '1 ' ) {
76- $ this ->feather ->template ->addAsset ('feed ' , 'extern.php?action=feed&fid= ' .$ id .'&type=rss ' , array ('title ' => __ ('RSS forum feed ' )));
76+ $ this ->feather ->template ->addAsset ('feed ' , 'extern.php?action=feed&fid= ' .$ fid .'&type=rss ' , array ('title ' => __ ('RSS forum feed ' )));
7777 } elseif ($ this ->feather ->forum_settings ['o_feed_type ' ] == '2 ' ) {
78- $ this ->feather ->template ->addAsset ('feed ' , 'extern.php?action=feed&fid= ' .$ id .'&type=atom ' , array ('title ' => __ ('Atom forum feed ' )));
78+ $ this ->feather ->template ->addAsset ('feed ' , 'extern.php?action=feed&fid= ' .$ fid .'&type=atom ' , array ('title ' => __ ('Atom forum feed ' )));
7979 }
8080
8181 $ this ->feather ->template ->setPageInfo (array (
@@ -84,9 +84,9 @@ public function display($id, $name = null, $page = null)
8484 'page_number ' => $ p ,
8585 'paging_links ' => $ paging_links ,
8686 'is_indexed ' => true ,
87- 'id ' => $ id ,
88- 'fid ' => $ id ,
89- 'forum_data ' => $ this ->model ->print_topics ($ id , $ sort_by , $ start_from ),
87+ 'id ' => $ fid ,
88+ 'fid ' => $ fid ,
89+ 'forum_data ' => $ this ->model ->print_topics ($ fid , $ sort_by , $ start_from ),
9090 'cur_forum ' => $ cur_forum ,
9191 'post_link ' => $ post_link ,
9292 'start_from ' => $ start_from ,
0 commit comments