Project

General

Profile

1 15208 thanos.pap
<?php
2
3
defined('_JEXEC') or die('Access denied');
4
5
jimport('joomla.application.component.view');
6
jimport('joomla.environment.request');
7
jimport('joomla.log.log');
8
9
class OpenAireViewIngestion1 extends JView {
10
	const LOG = 'openaire';
11
12
	function display($template = NULL) {
13
		$this -> itemId = JRequest :: getString('Itemid');
14
		if (count($errors = $this -> get('Errors')) > 0) {
15 15475 thanos.pap
			JLog :: add('Error viewing ingestion1: ' . implode("\n", $errors), JLog :: ERROR, self :: LOG);
16 15208 thanos.pap
			return FALSE;
17
		}
18
		parent :: display($template);
19
	}
20
}