CoreFiles by mySites.guru
mod_popular.php25 lines, 760 bytes, from Joomla_4.0.0-alpha3-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha2
md5
c76a98f254d7a8819ffd9131f5c25732
sha1
4eae497226049f3e764265b428eead01b99617b5
sha256
c1468d8cf5ec2cf73a9fd226b8c2494234ff1f703528e626bf7929db98bfd4d1
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  mod_popular
 *
 * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\Helper\ModuleHelper;
use Joomla\Component\Content\Administrator\Model\ArticlesModel;
use Joomla\Module\Popular\Administrator\Helper\PopularHelper;

$list = PopularHelper::getList($params, new ArticlesModel(array('ignore_request' => true)));

// Get module data.
if ($params->get('automatic_title', 0))
{
	$module->title = PopularHelper::getTitle($params);
}

// Render the module
require ModuleHelper::getLayoutPath('mod_popular', $params->get('layout', 'default'));

No other release has this exact content. See every version of this file.