[Xfce4-commits] <www:nick/gettext> Accept index.php as well.

Nick Schermer noreply at xfce.org
Thu Sep 8 14:34:01 CEST 2011


Updating branch refs/heads/nick/gettext
         to ddc7dc3ed0fbeeb773451290358ec4a68b93cf6e (commit)
       from 40698da72e215eeae750352cd04bf568f3a2037d (commit)

commit ddc7dc3ed0fbeeb773451290358ec4a68b93cf6e
Author: Nick Schermer <nick at xfce.org>
Date:   Thu Sep 8 14:29:48 2011 +0200

    Accept index.php as well.

 lib/core.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/core.php b/lib/core.php
index 4696f19..4fbaae6 100644
--- a/lib/core.php
+++ b/lib/core.php
@@ -36,7 +36,7 @@ function lookup_page($uri)
 	if (basename ($uri) == 'nav')
 		$uri = 'foo';
 
-	if (empty ($uri))
+	if (empty ($uri) || $uri == 'index.php')
 		return $root.'frontpage.php';
 
 	if (is_dir ($root.$uri))


More information about the Xfce4-commits mailing list