/contentmanager/code/trunk/administrator/components/com_contentmanager/views/about/view.html.php
PHP | 42 lines | 18 code | 7 blank | 17 comment | 1 complexity | 007b3194ca3c96e06c11622c576217cb MD5 | raw file
- <?php
- /**
- * @version $Id: view.html.php 52 2009-05-25 11:26:19Z eddieajau $
- * @copyright Copyright (C) 2009 New Life in IT Pty Ltd. All rights reserved.
- * @license GNU General Public License <http://www.gnu.org/copyleft/gpl.html>
- * @link http://www.theartofjoomla.com
- */
- // no direct access
- defined('_JEXEC') or die;
- jimport('joomla.application.component.view');
- /**
- * @package TAOJ.ContentManager
- * @subpackage com_contentmanager
- */
- class ContentManagerViewAbout extends JView
- {
- /**
- * Display the view
- *
- * @access public
- */
- function display($tpl = null)
- {
- $version = new ContentManagerVersion;
- $versions = $version->getVersions();
- $upgrades = $this->get('Upgrades');
- // Check for errors.
- if (count($errors = $this->get('Errors'))) {
- JError::raiseError(500, implode("\n", $errors));
- return false;
- }
- $this->assignRef('versions', $versions);
- parent::display($tpl);
- }
- }