1
0
Fork 0

DIRECTORY_SEPARATOR for coverager config example

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@172 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
1.2
Xuefer 17 years ago
parent 4a8f977046
commit 79864a13bd

@ -20,10 +20,13 @@ $usecache = false;
function ob_filter_path_nicer($o)
{
$o = str_replace($_SERVER['DOCUMENT_ROOT'], "{DOCROOT}/", $o);
$xcachedir = realpath(dirname(__FILE__) . "/../");
$o = str_replace($xcachedir . "/", "{XCache}/", $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;
}

Loading…
Cancel
Save