CoreFiles by mySites.guru
VersionHelper.php33 lines, 679 bytes, from Joomla_4.2.1-rc2-Release_Candidate-Full_Package.zip
Raw History Compare with 4.2.1-rc1
md5
c10803a861c800fa1f93db334b882ae3
sha1
afb6fdccd175f6515a098504e9dfef8aa3f20484
sha256
506caeace00257de9bc61d2539ef5df65046a28edad43514e61bdd1bf4a84b7d
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  mod_version
 *
 * @copyright   (C) 2012 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Module\Version\Administrator\Helper;

use Joomla\CMS\Version;

/**
 * Helper for mod_version
 *
 * @since  1.6
 */
abstract class VersionHelper
{
    /**
     * Get the Joomla version number.
     *
     * @return  string  String containing the current Joomla version.
     */
    public static function getVersion()
    {
        $version = new Version();

        return '&#x200E;' . $version->getShortVersion();
    }
}

The same content is in 5 releases, Joomla 4.2.0-beta3 to 4.2.1-rc2. See them all, or every version of this file.