@@ -127,11 +127,12 @@ class HtmlView extends KunenaView
127
127
public function displayDefault ($ tpl = null )
128
128
{
129
129
$ this ->layout = 'default ' ;
130
+ $ model = $ this ->getModel ();
130
131
$ this ->params = $ this ->state ->get ('params ' );
131
- $ this ->topics = $ this -> get ( ' Topics ' );
132
- $ this ->total = $ this -> get ( ' Total ' );
133
- $ this ->topicActions = $ this -> get ( ' TopicActions ' );
134
- $ this ->actionMove = $ this -> get ( ' ActionMove ' );
132
+ $ this ->topics = $ model -> getTopics ( );
133
+ $ this ->total = $ model -> getTotal ( );
134
+ $ this ->topicActions = $ model -> getTopicActions ( );
135
+ $ this ->actionMove = $ model -> getActionMove ( );
135
136
$ this ->message_ordering = $ this ->me ->getMessageOrdering ();
136
137
137
138
$ this ->URL = KunenaRoute::_ ();
@@ -170,11 +171,12 @@ protected function _prepareDocument() {}
170
171
public function displayUser ($ tpl = null )
171
172
{
172
173
$ this ->layout = 'user ' ;
174
+ $ model = $ this ->getModel ();
173
175
$ this ->params = $ this ->state ->get ('params ' );
174
- $ this ->topics = $ this -> get ( ' Topics ' );
175
- $ this ->total = $ this -> get ( ' Total ' );
176
- $ this ->topicActions = $ this -> get ( ' TopicActions ' );
177
- $ this ->actionMove = $ this -> get ( ' ActionMove ' );
176
+ $ this ->topics = $ model -> getTopics ( );
177
+ $ this ->total = $ model -> getTotal ( );
178
+ $ this ->topicActions = $ model -> getTopicActions ( );
179
+ $ this ->actionMove = $ model -> getActionMove ( );
178
180
$ this ->message_ordering = $ this ->me ->getMessageOrdering ();
179
181
180
182
$ this ->URL = KunenaRoute::_ ();
@@ -206,10 +208,11 @@ public function displayUser($tpl = null)
206
208
public function displayPosts ($ tpl = null )
207
209
{
208
210
$ this ->layout = 'posts ' ;
211
+ $ model = $ this ->getModel ();
209
212
$ this ->params = $ this ->state ->get ('params ' );
210
- $ this ->messages = $ this -> get ( ' Messages ' );
211
- $ this ->topics = $ this -> get ( ' Topics ' );
212
- $ this ->total = $ this -> get ( ' Total ' );
213
+ $ this ->messages = $ model -> getMessages ( );
214
+ $ this ->topics = $ model -> getTopics ( );
215
+ $ this ->total = $ model -> getTotal ( );
213
216
$ this ->actionMove = false ;
214
217
$ this ->message_ordering = $ this ->me ->getMessageOrdering ();
215
218
@@ -340,7 +343,7 @@ public function displayTopicRows()
340
343
$ params ->set ('kunena_layout ' , 'topics ' );
341
344
342
345
PluginHelper::importPlugin ('kunena ' );
343
-
346
+ var_dump ( $ this -> topics ); die ();
344
347
$ prepareEvent = new KunenaPrepareEvent ('onKunenaPrepare ' , [
345
348
'context ' => 'kunena.topics ' ,
346
349
'subject ' => $ this ->topics ,
0 commit comments