Author: nextgens
Date: 2008-05-14 06:49:18 +0000 (Wed, 14 May 2008)
New Revision: 19920
Modified:
trunk/website/includes/common.inc.php
Log:
website: even better that way
Modified: trunk/website/includes/common.inc.php
===================================================================
--- trunk/website/includes/common.inc.php 2008-05-14 06:21:12 UTC (rev
19919)
+++ trunk/website/includes/common.inc.php 2008-05-14 06:49:18 UTC (rev
19920)
@@ -5,7 +5,7 @@
$host = htmlentities($_SERVER['HTTP_HOST']);
$prefix = "http://".$host;
- if ($c=preg_match_all ("/\\/index\\.php\\?page=([^&]+)/is",
$currentURI, $matches)) {
+ if ($c=preg_match_all ("/\\/index\\.php\\?page=[/]*([^&]+)/is",
$currentURI, $matches)) {
$page_name = $matches[1][0].".html";
} else {
$page_name = "";