getModel(self :: MODEL); $locale = JFactory :: getLanguage() -> getTag(); $this -> itemId = JRequest :: getUInt('Itemid', 0); $this -> articleId = JRequest :: getString('articleId'); $this -> statisticsExistUrl = $search -> getPublicationStatisticsExistUrl(); $this -> statisticsChartUrl = $search -> getPublicationStatisticsChartUrl(); $this -> article =($this -> articleId==NULL||$this -> articleId=="")?NULL: $search -> getPublication($this -> articleId, $locale); $this -> logged = (JFactory::getUser()->guest?false:true); JViewLegacy :: loadHelper('PiwikHelper'); PiwikHelper :: logPageView('viewPublication', 'publicationId=' . urlencode($this -> articleId) . '&locale=' . urlencode($locale)); if (count($errors = $this -> get('Errors')) > 0) { JLog :: add('Error viewing article: ' . implode("\n", $errors), JLog :: ERROR, self :: LOG); return FALSE; } parent :: display($template); } }