CoreFiles by mySites.guru
mod_articles_popular.php27 lines, 765 bytes, from Joomla_4.2.0-Stable-Full_Package.zip
Raw History Compare with 4.1.5
md5
a367cb65083f7f7ffb6afadaf8b529bb
sha1
bca3fb1acbb375e378c030c8314cd19b79dd068c
sha256
ee74f9275ba2b8908319490b28da1ae8ed97b0e4719f96f9ff63df4a7153efff
<?php

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

defined('_JEXEC') or die;

use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Helper\ModuleHelper;
use Joomla\CMS\Language\Text;
use Joomla\Module\ArticlesPopular\Site\Helper\ArticlesPopularHelper;

// Exit early if hits are disabled.
if (!ComponentHelper::getParams('com_content')->get('record_hits', 1)) {
    echo Text::_('JGLOBAL_RECORD_HITS_DISABLED');

    return;
}

$list = ArticlesPopularHelper::getList($params);

require ModuleHelper::getLayoutPath('mod_articles_popular', $params->get('layout', 'default'));

The same content is in 21 releases, Joomla 4.2.0-beta3 to 4.3.0-alpha2. See them all, or every version of this file.