From 88bc4b2d67f04fa593db262655aecfeacb678d9a Mon Sep 17 00:00:00 2001 From: Xuefer Date: Wed, 8 Jul 2009 17:50:26 +0000 Subject: [PATCH] fix config example, undefined variable d git-svn-id: svn://svn.lighttpd.net/xcache/trunk@647 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- admin/config.php.example | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/config.php.example b/admin/config.php.example index 999b023..a7bb322 100644 --- a/admin/config.php.example +++ b/admin/config.php.example @@ -25,7 +25,8 @@ $enable_eval = false; function ob_filter_path_nicer($o) { $sep = DIRECTORY_SEPARATOR; - $o = str_replace($_SERVER['DOCUMENT_ROOT'], "{DOCROOT}" . (substr($d, -1) == $sep ? $sep : ""), $o); + $d = $_SERVER['DOCUMENT_ROOT']; + $o = str_replace($d, "{DOCROOT}" . (substr($d, -1) == $sep ? $sep : ""), $o); $xcachedir = realpath(dirname(__FILE__) . "$sep..$sep"); $o = str_replace($xcachedir . $sep, "{XCache}$sep", $o); if ($sep == '/') {