summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-08-03 20:14:52 +0000
committerDries Buytaert <dries@buytaert.net>2001-08-03 20:14:52 +0000
commit6e15c4b55fb96ed0aa2b61f0a50b23cf0babc56f (patch)
treea1cfb1df2f8a9d65b5497cc6b8c84d162ea577ac
parentcd48b94ad9ee078cf38fb7d58c1f4500dd5ccb7e (diff)
downloadbrdo-6e15c4b55fb96ed0aa2b61f0a50b23cf0babc56f.tar.gz
brdo-6e15c4b55fb96ed0aa2b61f0a50b23cf0babc56f.tar.bz2
- common.inc:
+ applied Julian's conf_init() patch
-rw-r--r--includes/common.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 4a6339114..16309da5b 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -3,7 +3,7 @@
function conf_init() {
global $HTTP_HOST, $REQUEST_URI;
$file = strtolower(strtr($HTTP_HOST ."". substr($REQUEST_URI, 0, strrpos($REQUEST_URI, "/")), "/:", ".."));
- while ($file && !file_exists("includes/$file.php")) $file = substr($file, 0, strrpos($file, "."));
+ while ($file && !file_exists("includes/$file.php")) $file = substr($file, strpos($file, ".") + 1);
return $file ? $file : "conf";
}