PageRenderTime 40ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/contentmanager/code/trunk/administrator/components/com_contentmanager/views/about/view.html.php

https://bitbucket.org/eddieajau/the-art-of-joomla-archive
PHP | 42 lines | 18 code | 7 blank | 17 comment | 1 complexity | 007b3194ca3c96e06c11622c576217cb MD5 | raw file
  1. <?php
  2. /**
  3. * @version $Id: view.html.php 52 2009-05-25 11:26:19Z eddieajau $
  4. * @copyright Copyright (C) 2009 New Life in IT Pty Ltd. All rights reserved.
  5. * @license GNU General Public License <http://www.gnu.org/copyleft/gpl.html>
  6. * @link http://www.theartofjoomla.com
  7. */
  8. // no direct access
  9. defined('_JEXEC') or die;
  10. jimport('joomla.application.component.view');
  11. /**
  12. * @package TAOJ.ContentManager
  13. * @subpackage com_contentmanager
  14. */
  15. class ContentManagerViewAbout extends JView
  16. {
  17. /**
  18. * Display the view
  19. *
  20. * @access public
  21. */
  22. function display($tpl = null)
  23. {
  24. $version = new ContentManagerVersion;
  25. $versions = $version->getVersions();
  26. $upgrades = $this->get('Upgrades');
  27. // Check for errors.
  28. if (count($errors = $this->get('Errors'))) {
  29. JError::raiseError(500, implode("\n", $errors));
  30. return false;
  31. }
  32. $this->assignRef('versions', $versions);
  33. parent::display($tpl);
  34. }
  35. }