Exemplo n.º 1
0
/**
 * Content router functions
 *
 * These functions are proxys for the new router interface
 * for old SEF extensions.
 *
 * @deprecated  4.0  Use Class based routers instead
 */
function ContentBuildRoute(&$query)
{
    $router = new ContentRouter();
    return $router->build($query);
}
Exemplo n.º 2
0
/**
 * Content router functions
 *
 * These functions are proxys for the new router interface
 * for old SEF extensions.
 *
 * @param   array  &$query  An array of URL arguments
 *
 * @return  array  The URL arguments to use to assemble the subsequent URL.
 *
 * @deprecated  4.0  Use Class based routers instead
 */
function contentBuildRoute(&$query)
{
    $app = JFactory::getApplication();
    $router = new ContentRouter($app, $app->getMenu());
    return $router->build($query);
}