1111namespace phpbb \ideas \controller ;
1212
1313use phpbb \exception \http_exception ;
14- use phpbb \ideas \factory \ ideas ;
14+ use phpbb \ideas \ext ;
1515
1616class list_controller extends base
1717{
@@ -31,7 +31,7 @@ public function ideas_list($sort)
3131
3232 // Overwrite the $sort parameter if the url contains a sort query.
3333 // This is needed with the sort by options form at the footer of the list.
34- $ sort = $ this ->request ->is_set ('sort ' ) ? $ this ->request ->variable ('sort ' , ideas ::SORT_NEW ) : $ sort ;
34+ $ sort = $ this ->request ->is_set ('sort ' ) ? $ this ->request ->variable ('sort ' , ext ::SORT_NEW ) : $ sort ;
3535
3636 // Get additional query values the url may contain
3737 $ sort_direction = $ this ->request ->variable ('sd ' , 'd ' );
@@ -47,20 +47,20 @@ public function ideas_list($sort)
4747 $ sort_direction = ($ sort_direction === 'd ' ) ? 'DESC ' : 'ASC ' ;
4848
4949 // If sort by "new" we really use date
50- if ($ sort === ideas ::SORT_NEW )
50+ if ($ sort === ext ::SORT_NEW )
5151 {
52- $ sort = ideas ::SORT_DATE ;
52+ $ sort = ext ::SORT_DATE ;
5353 }
5454
5555 // Set the name for displaying in the template
56- $ status_name = 'LIST_ ' . strtoupper ($ status > 0 ? array_search ($ status , ideas ::$ statuses ) : $ sort );
56+ $ status_name = 'LIST_ ' . strtoupper ($ status > 0 ? array_search ($ status , ext ::$ statuses ) : $ sort );
5757 $ status_name = $ this ->language ->is_set ($ status_name ) ? $ this ->language ->lang ($ status_name ) : '' ;
5858
5959 // For special case where we want to request ALL ideas,
6060 // including the statuses normally hidden from lists.
6161 if ($ status === -1 )
6262 {
63- $ status = ideas ::$ statuses ;
63+ $ status = ext ::$ statuses ;
6464 $ status_name = $ status_name ?: $ this ->language ->lang ('ALL_IDEAS ' );
6565 }
6666
@@ -74,9 +74,9 @@ public function ideas_list($sort)
7474 'U_POST_ACTION ' => $ this ->helper ->route ('phpbb_ideas_post_controller ' ),
7575 'IDEAS_COUNT ' => $ this ->ideas ->get_idea_count (),
7676 'STATUS_NAME ' => $ status_name ?: $ this ->language ->lang ('OPEN_IDEAS ' ),
77- 'STATUS_ARY ' => ideas ::$ statuses ,
77+ 'STATUS_ARY ' => ext ::$ statuses ,
7878 'STATUS ' => $ u_status ,
79- 'SORT_ARY ' => array (ideas ::SORT_AUTHOR , ideas ::SORT_DATE , ideas ::SORT_SCORE , ideas ::SORT_TITLE , ideas ::SORT_TOP , ideas ::SORT_VOTES ),
79+ 'SORT_ARY ' => array (ext ::SORT_AUTHOR , ext ::SORT_DATE , ext ::SORT_SCORE , ext ::SORT_TITLE , ext ::SORT_TOP , ext ::SORT_VOTES ),
8080 'SORT ' => $ sort ,
8181 'SORT_DIRECTION ' => $ sort_direction ,
8282 'U_MCP ' => ($ this ->auth ->acl_get ('m_ ' , $ this ->config ['ideas_forum_id ' ])) ? append_sid ("{$ this ->root_path }mcp. {$ this ->php_ext }" , "f= {$ this ->config ['ideas_forum_id ' ]}&i=main&mode=forum_view " , true , $ this ->user ->session_id ) : '' ,
0 commit comments