Project

General

Profile

1
<?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
			JLog :: add('Error viewing ingestion1: ' . implode("\n", $errors), JLog :: ERROR, self :: LOG);
16
			return FALSE;
17
		}
18
		parent :: display($template);
19
	}
20
}
21

    
(2-2/2)