mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
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:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user