Browse Source

fix config example, undefined variable d

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@647 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 13 years ago
parent
commit
88bc4b2d67
  1. 3
      admin/config.php.example

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

Loading…
Cancel
Save