CoreFiles by mySites.guru
router.php36 lines, 674 bytes, from Joomla_1.6.2-Stable-Full_Package.zip
Raw History Compare with 1.6.1
md5
e500ada3527d9b050cbee73f0f20c650
sha1
f3bddaee82e48f89af3f16be69171871e0cffc76
sha256
df58c3ed17ebaac4a3555f814c8034fa10284b40ced6a90fc357604c5454eb93
<?php
/**
 * @version		$Id: router.php 20759 2011-02-18 04:45:08Z 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
 */

/**
 * @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.6.1 to 1.6.6. See them all, or every version of this file.