@@ -118,10 +118,11 @@ class HtmlView extends BaseHtmlView
118118 public function display ($ tpl = null )
119119 {
120120 $ app = Factory::getApplication ();
121- $ this ->state = $ this ->get ('State ' );
121+ $ model = $ this ->getModel ();
122+ $ this ->state = $ model ->getState ();
122123 $ this ->params = $ this ->state ->get ('params ' );
123- $ this ->items = $ this -> get ( ' Items ' );
124- $ this ->pagination = $ this -> get ( ' Pagination ' );
124+ $ this ->items = $ model -> getItems ( );
125+ $ this ->pagination = $ model -> getPagination ( );
125126 // Flag indicates to not add limitstart=0 to URL
126127 $ this ->pagination ->hideEmptyLimitstart = true ;
127128 // Add additional parameters
@@ -143,12 +144,12 @@ public function display($tpl = null)
143144 $ this ->pagination ->setAdditionalUrlParam ($ parameter , $ value );
144145 }
145146
146- $ this ->project = $ this -> get ( ' Item ' );
147+ $ this ->project = $ model -> getItem ( );
147148 $ this ->category = $ this ->project ->category ;
148149 $ this ->menu = $ app ->getMenu ()->getActive ();
149150
150151 // Check for errors
151- if (count ($ errors = $ this -> get ( ' Errors ' )))
152+ if (count ($ errors = $ model -> getErrors ( )))
152153 {
153154 throw new \Exception (implode ('\n ' , $ errors ), 500 );
154155 }
@@ -187,7 +188,7 @@ public function display($tpl = null)
187188 }
188189 }
189190 $ this ->params = $ project ->params ;
190- $ app = Factory:: getApplication ();
191+
191192 $ offset = $ app ->getInput ()->getUInt ('limitstart ' );
192193 $ dispatcher = $ this ->getDispatcher ();
193194 // Extra content from events
@@ -353,7 +354,7 @@ protected function _prepareDocument()
353354 }
354355
355356 // Set meta url
356- $ url = Uri::getInstance ()->toString (array ( 'scheme ' , 'host ' , 'port ' ) ) . $ project ->versions ;
357+ $ url = Uri::getInstance ()->toString ([ 'scheme ' , 'host ' , 'port ' ] ) . $ project ->versions ;
357358 $ doc ->setMetaData ('url ' , $ url );
358359
359360 // Set meta twitter
0 commit comments