diff options
author | rub <rub@piwigo.org> | 2007-02-07 23:08:04 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2007-02-07 23:08:04 +0000 |
commit | 5631a3fc545bd736cb4b82a93fa7d2b48814973c (patch) | |
tree | aea9cfa1fb8f563e1d41fd4b611a6024864c1af4 /include/functions_url.inc.php | |
parent | 3c8775b25255a2be4f561b1c0ede275cbae3f73b (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | include/functions_url.inc.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/functions_url.inc.php b/include/functions_url.inc.php index 376d4f4e9..2a567e8c5 100644 --- a/include/functions_url.inc.php +++ b/include/functions_url.inc.php @@ -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']; |