CoreFiles by mySites.guru
mod_articles_popular.php27 lines, 758 bytes, from Joomla_4.0.2-Stable-Full_Package.zip
Raw History Compare with 4.0.1
md5
94f5a696be062bb78c32f4838aa77af9
sha1
6cb4c3e2e9ccdabb51c7d103180fba190cac1200
sha256
f8655eee2b7931ffad02bd5267bb62df5fa1645b6791d942cbe562ae087f2a1f
<?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 48 releases, Joomla 4.0.0-rc2 to 4.2.0-beta2. See them all, or every version of this file.