CoreFiles by mySites.guru
System.php37 lines, 788 bytes, from Joomla_4.2.2-Stable-Full_Package.zip
Raw History Compare with 4.2.1
md5
cb56edfca492e28604672302eaaa9f42
sha1
8723e3dc3ff46547fe64ce46c35bf71bc0a4ed46
sha256
384307a57983ab6af66fd7fb8bb9279337684ee39dee4271aaa36f5c19f52be1
<?php

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

namespace Joomla\Component\Admin\Administrator\Service\HTML;

use Joomla\CMS\Language\Text;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * Utility class working with system
 *
 * @since  1.6
 */
class System
{
    /**
     * Method to generate a string message for a value
     *
     * @param   string  $val  a php ini value
     *
     * @return  string html code
     */
    public function server($val)
    {
        return !empty($val) ? $val : Text::_('COM_ADMIN_NA');
    }
}

The same content is in 225 releases, Joomla 4.2.1 to 6.2.1-rc1. See them all, or every version of this file.