1414use phpbb \config \config ;
1515use phpbb \controller \helper ;
1616use phpbb \ideas \ext ;
17- use phpbb \ideas \factory \manager as ideas ;
17+ use phpbb \ideas \factory \idea ;
1818use phpbb \ideas \factory \linkhelper ;
1919use phpbb \language \language ;
2020use phpbb \template \template ;
@@ -32,8 +32,8 @@ class listener implements EventSubscriberInterface
3232 /* @var helper */
3333 protected $ helper ;
3434
35- /* @var ideas */
36- protected $ ideas ;
35+ /* @var idea */
36+ protected $ idea ;
3737
3838 /** @var language */
3939 protected $ language ;
@@ -54,19 +54,19 @@ class listener implements EventSubscriberInterface
5454 * @param \phpbb\auth\auth $auth
5555 * @param \phpbb\config\config $config
5656 * @param \phpbb\controller\helper $helper
57- * @param \phpbb\ideas\factory\manager $ideas
57+ * @param \phpbb\ideas\factory\idea $idea
5858 * @param \phpbb\language\language $language
5959 * @param \phpbb\ideas\factory\linkhelper $link_helper
6060 * @param \phpbb\template\template $template
6161 * @param \phpbb\user $user
6262 * @param string $php_ext
6363 */
64- public function __construct (auth $ auth , config $ config , helper $ helper , ideas $ ideas , language $ language , linkhelper $ link_helper , template $ template , user $ user , $ php_ext )
64+ public function __construct (auth $ auth , config $ config , helper $ helper , idea $ idea , language $ language , linkhelper $ link_helper , template $ template , user $ user , $ php_ext )
6565 {
6666 $ this ->auth = $ auth ;
6767 $ this ->config = $ config ;
6868 $ this ->helper = $ helper ;
69- $ this ->ideas = $ ideas ;
69+ $ this ->idea = $ idea ;
7070 $ this ->language = $ language ;
7171 $ this ->link_helper = $ link_helper ;
7272 $ this ->template = $ template ;
@@ -143,7 +143,7 @@ public function show_idea($event)
143143 return ;
144144 }
145145
146- $ idea = $ this ->ideas ->get_idea_by_topic_id ($ event ['topic_data ' ]['topic_id ' ]);
146+ $ idea = $ this ->idea ->get_idea_by_topic_id ($ event ['topic_data ' ]['topic_id ' ]);
147147
148148 if (!$ idea )
149149 {
@@ -174,7 +174,7 @@ public function show_idea($event)
174174 $ s_voted_up = $ s_voted_down = false ;
175175 if ($ idea ['idea_votes_up ' ] || $ idea ['idea_votes_down ' ])
176176 {
177- $ votes = $ this ->ideas ->get_voters ($ idea ['idea_id ' ]);
177+ $ votes = $ this ->idea ->get_voters ($ idea ['idea_id ' ]);
178178
179179 foreach ($ votes as $ vote )
180180 {
@@ -198,9 +198,9 @@ public function show_idea($event)
198198 'IDEA_VOTES_DOWN ' => $ idea ['idea_votes_down ' ],
199199 'IDEA_POINTS ' => $ points ,
200200 'IDEA_STATUS_ID ' => $ idea ['idea_status ' ],
201- 'IDEA_STATUS_NAME ' => $ this ->ideas ->get_status_from_id ($ idea ['idea_status ' ]),
201+ 'IDEA_STATUS_NAME ' => $ this ->idea ->get_status_from_id ($ idea ['idea_status ' ]),
202202
203- 'IDEA_DUPLICATE ' => $ idea ['duplicate_id ' ] ? $ this ->ideas ->get_title ($ idea ['duplicate_id ' ]) : '' ,
203+ 'IDEA_DUPLICATE ' => $ idea ['duplicate_id ' ] ? $ this ->idea ->get_title ($ idea ['duplicate_id ' ]) : '' ,
204204 'IDEA_RFC ' => $ idea ['rfc_link ' ],
205205 'IDEA_TICKET ' => $ idea ['ticket_id ' ],
206206 'IDEA_IMPLEMENTED ' => $ idea ['implemented_version ' ],
@@ -341,7 +341,7 @@ public function submit_idea_after($event)
341341 return ;
342342 }
343343
344- $ this ->ideas ->submit ($ event ['data ' ]);
344+ $ this ->idea ->submit ($ event ['data ' ]);
345345
346346 // Show users who's posts need approval a special message
347347 if (!$ this ->auth ->acl_get ('f_noapprove ' , $ event ['data ' ]['forum_id ' ]))
@@ -370,8 +370,8 @@ public function edit_idea_title($event)
370370 return ;
371371 }
372372
373- $ idea = $ this ->ideas ->get_idea_by_topic_id ($ event ['topic_id ' ]);
374- $ this ->ideas ->set_title ($ idea ['idea_id ' ], $ event ['post_data ' ]['post_subject ' ]);
373+ $ idea = $ this ->idea ->get_idea_by_topic_id ($ event ['topic_id ' ]);
374+ $ this ->idea ->set_title ($ idea ['idea_id ' ], $ event ['post_data ' ]['post_subject ' ]);
375375 }
376376
377377 /**
0 commit comments