Issue 0000639: Force selected page on index.php

When page index.php is called without defined section, redirect to a page selected  by random on a user list.

git-svn-id: http://piwigo.org/svn/trunk@1788 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rub
2007-02-07 23:08:04 +00:00
parent 3c8775b252
commit 5631a3fc54
7 changed files with 45 additions and 7 deletions
+5 -1
View File
@@ -312,7 +312,7 @@ function make_section_in_url($params)
if (!isset($params['section']))
{
$params['section'] = 'categories';
$params['section'] = 'none';
}
switch($params['section'])
@@ -398,6 +398,10 @@ function make_section_in_url($params)
break;
}
case 'none' :
{
break;
}
default :
{
$section_string.= '/'.$params['section'];