From 5631a3fc545bd736cb4b82a93fa7d2b48814973c Mon Sep 17 00:00:00 2001 From: rub Date: Wed, 7 Feb 2007 23:08:04 +0000 Subject: 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 --- include/functions_url.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/functions_url.inc.php') 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']; -- cgit v1.2.3