CoreFiles by mySites.guru
router.php38 lines, 701 bytes, from Joomla_1.7.3-Stable-Full_Package.zip
Raw History Compare with 1.7.2
md5
e2ce21e7b7671c687a5c6157be9d2aaa
sha1
04546bbc26261d85b4262cd07113516e891a514a
sha256
3ab5c251c33e3a652a46d16ed6d2b97bc1a15ec3924fdff0b2f30558135cdcd8
<?php
/**
 * @version		$Id: router.php 21389 2011-05-26 17:28:26Z dextercowley $
 * @package		Joomla.Site
 * @copyright	Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * @param	array
 * @return	array
 */
function SearchBuildRoute(&$query)
{
	$segments = array();

	if (isset($query['view'])) {
		unset($query['view']);
	}
	return $segments;
}

/**
 * @param	array
 * @return	array
 */
function SearchParseRoute($segments)
{
	$vars = array();

	$searchword	= array_shift($segments);
	$vars['searchword'] = $searchword;
	$vars['view'] = 'search';

	return $vars;
}

The same content is in 6 releases, Joomla 1.7.0 to 1.7.5. See them all, or every version of this file.