public function __construct($step = null) { // Joomla 2.5 support if (file_exists(JPATH_LIBRARIES . '/cms/version/version.php')) { require_once JPATH_LIBRARIES . '/cms/version/version.php'; } elseif (file_exists(JPATH_SITE . '/includes/version.php')) { require_once JPATH_SITE . '/includes/version.php'; } parent::__construct($step); }
public function __construct($step = null) { // Joomla 2.5 support if (file_exists(JPATH_LIBRARIES . '/cms/version/version.php')) { require_once JPATH_LIBRARIES . '/cms/version/version.php'; } if (!defined('JVERSION')) { $version = new JVersion(); define('JVERSION', $version->getShortVersion()); } parent::__construct($step); }