1
0
Fork 0

fix config example, undefined variable d

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@647 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
Xuefer 2009-07-08 17:50:26 +00:00
parent 3003e642fb
commit 88bc4b2d67
1 changed files with 2 additions and 1 deletions

View File

@ -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 == '/') {