joomla_test/components/com_wrapper/router.php
2020-01-02 22:20:31 +07:00

40 lines
605 B
PHP

<?php
/**
* @package Joomla.Site
* @subpackage com_wrapper
*
* @copyright Copyright (C) 2005 - 2013 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 WrapperBuildRoute(&$query)
{
$segments = array();
if (isset($query['view']))
{
unset($query['view']);
}
return $segments;
}
/**
* @param array
* @return array
*/
function WrapperParseRoute($segments)
{
$vars = array();
$vars['view'] = 'wrapper';
return $vars;
}