getModel(self :: SEARCH); $locale = JFactory :: getLanguage() -> getTag(); $this -> itemId = JRequest :: getUInt('Itemid', 0); $this -> publicationId = JRequest :: getString('publicationId'); $this -> action = JRequest :: getString('action'); $this -> statisticsExistUrl = $search -> getPublicationStatisticsExistUrl(); $this -> statisticsChartUrl = $search -> getPublicationStatisticsChartUrl(); $this -> getModel(self :: PIWIK) -> track('printPublication', 'publicationId=' . urlencode($this -> publicationId) . '&locale=' . urlencode($locale)); $this -> publication = $search -> getPublication($this -> publicationId, $locale); if (count($errors = $this -> get('Errors')) > 0) { JLog :: add('Error viewing print publication: ' . implode("\n", $errors), JLog :: ERROR, self :: LOG); return FALSE; } parent :: display($template); } }