1
0
Fork 0

try not to "nicer" on middle of the path

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@953 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 11 years ago
parent 67f522ab78
commit 285096e893

@ -102,11 +102,11 @@ function ob_filter_path_nicer_default($list_html)
if ($sep != '/') {
$docRoot = str_replace('/', $sep, $docRoot);
}
$list_html = str_replace($docRoot, "{DOCROOT}" . (substr($docRoot, -1) == $sep ? $sep : ""), $list_html);
$list_html = str_replace(">$docRoot", ">{DOCROOT}" . (substr($docRoot, -1) == $sep ? $sep : ""), $list_html);
$xcachedir = realpath(dirname(__FILE__) . "$sep..$sep");
$list_html = str_replace($xcachedir . $sep, "{XCache}$sep", $list_html);
$list_html = str_replace(">$xcachedir$sep", ">{XCache}$sep", $list_html);
if ($sep == '/') {
$list_html = str_replace("/home/", "{H}/", $list_html);
$list_html = str_replace(">/home/", ">{H}/", $list_html);
}
return $list_html;
}

Loading…
Cancel
Save