CoreFiles by mySites.guru
site.php44 lines, 770 bytes, from Joomla_3.9.13-Stable-Full_Package.zip
Raw History Compare with 3.9.12
md5
e03cf8c9c03dae0b509eb08114d44c0e
sha1
aa1d621c978c3bd3eb9863531a76ecf5e058d956
sha256
d483479495551910c30ad280c5e93234dff9d193e0727689aed791fa48e714ae
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_search
 *
 * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Mock JSite class used to fool the frontend search plugins because they route the results.
 *
 * @since  1.5
 */
class JSite extends JObject
{
	/**
	 * False method to fool the frontend search plugins.
	 *
	 * @return  JSite
	 *
	 * @since  1.5
	 */
	public function getMenu()
	{
		$result = new JSite;

		return $result;
	}

	/**
	 * False method to fool the frontend search plugins.
	 *
	 * @return  array
	 *
	 * @since  1.5
	 */
	public function getItems()
	{
		return array();
	}
}

The same content is in 28 releases, Joomla 3.9.2-rc to 4.0.0-alpha8. See them all, or every version of this file.