layout = JRequest :: getString('layout', self :: HTML); $locale = JFactory :: getLanguage() -> getTag(); $projectId = JRequest :: getString('projectId'); $model = $this -> getModel(self :: MODEL); $this -> project = $model -> getProject($projectId, $locale); $result = $model -> browsePublications(NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, $locale, $projectId, NULL); $result = $model -> browsePublications(NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, $result -> totalPublications, $locale, $projectId, NULL); $this -> publications = $result -> publications; if (count($errors = $this -> get('Errors')) > 0) { JLog :: add('Error viewing publications: ' . implode("\n", $errors), JLog :: ERROR, self :: LOG); return FALSE; } parent :: display($template); } }