From 876536a955b783c4f82185dc45557ef3b1bd949f Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Wed, 8 Aug 2001 09:22:01 +0000 Subject: locale.module - search is now default. - search remembers your settings. - save will dump you back to your last search. --- includes/common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index 16309da5b..a46ae405b 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, strpos($file, ".") + 1); + while (strpos($file, '.') && !file_exists("includes/$file.php")) $file = substr($file, strpos($file, ".") + 1); return $file ? $file : "conf"; } -- cgit v1.2.3