@@ -31,21 +31,21 @@ public function index()
3131 }
3232
3333 // Generate latest ideas
34- $ ideas = $ this ->ideas ->get_ideas (self ::NUM_IDEAS , ' date ' , 'DESC ' );
34+ $ ideas = $ this ->ideas ->get_ideas (self ::NUM_IDEAS , ideas:: SORT_DATE , 'DESC ' );
3535 $ this ->assign_template_block_vars ('latest_ideas ' , $ ideas );
3636
3737 // Generate top ideas
38- $ ideas = $ this ->ideas ->get_ideas (self ::NUM_IDEAS , ' top ' , 'DESC ' );
38+ $ ideas = $ this ->ideas ->get_ideas (self ::NUM_IDEAS , ideas:: SORT_TOP , 'DESC ' );
3939 $ this ->assign_template_block_vars ('top_ideas ' , $ ideas );
4040
4141 // Generate recently implemented
42- $ ideas = $ this ->ideas ->get_ideas (self ::NUM_IDEAS , ' date ' , 'DESC ' , ideas::$ statuses ['IMPLEMENTED ' ]);
42+ $ ideas = $ this ->ideas ->get_ideas (self ::NUM_IDEAS , ideas:: SORT_DATE , 'DESC ' , ideas::$ statuses ['IMPLEMENTED ' ]);
4343 $ this ->assign_template_block_vars ('implemented_ideas ' , $ ideas );
4444
4545 $ this ->template ->assign_vars (array (
46- 'U_VIEW_TOP ' => $ this ->link_helper ->get_list_link (' top ' ),
47- 'U_VIEW_LATEST ' => $ this ->link_helper ->get_list_link (' new ' ),
48- 'U_VIEW_IMPLEMENTED ' => $ this ->link_helper ->get_list_link (' implemented ' ),
46+ 'U_VIEW_TOP ' => $ this ->link_helper ->get_list_link (ideas:: SORT_TOP ),
47+ 'U_VIEW_LATEST ' => $ this ->link_helper ->get_list_link (ideas:: SORT_NEW ),
48+ 'U_VIEW_IMPLEMENTED ' => $ this ->link_helper ->get_list_link (ideas:: SORT_IMPLEMENTED ),
4949 'U_POST_ACTION ' => $ this ->helper ->route ('phpbb_ideas_post_controller ' ),
5050 ));
5151
0 commit comments