diff --git a/admin/config.php.example b/admin/config.php.example index 79d7b54..a67605c 100644 --- a/admin/config.php.example +++ b/admin/config.php.example @@ -9,7 +9,13 @@ $charset = "UTF-8"; // this ob filter is applied for the cache list, not the whole page function ob_filter_path_nicer($o) { - $o = str_replace("/home/", "{H}/", $o); + $sep = DIRECTORY_SEPARATOR; + $o = str_replace($_SERVER['DOCUMENT_ROOT'], "{DOCROOT}$sep", $o); + $xcachedir = realpath(dirname(__FILE__) . "$sep..$sep"); + $o = str_replace($xcachedir . $sep, "{XCache}$sep", $o); + if ($sep == '/') { + $o = str_replace("/home/", "{H}/", $o); + } return $o; }