feature 2197 added: if make_index_url() adds no parameters after index.php?, then we return get_absolute_root_url()

git-svn-id: http://piwigo.org/svn/trunk@9353 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2011-02-22 22:21:59 +00:00
parent 78f7e1f96c
commit ceacda960c

View File

@@ -134,8 +134,17 @@ function make_index_url($params = array())
{
$url .= '?';
}
$url_before_params = $url;
$url.= make_section_in_url($params);
$url = add_well_known_params_in_url($url, $params);
if ($url == $url_before_params)
{
$url = get_absolute_root_url();
}
return $url;
}