Changeset 79864a1 in git


Ignore:
Timestamp:
2006-09-17T01:56:36Z (14 years ago)
Author:
Xuefer <xuefer@…>
Branches:
1.2, 1.3, 3.0, 3.1, 3.2, master, trunk
Children:
182e31f
Parents:
4a8f977
Message:

DIRECTORY_SEPARATOR for coverager config example

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@172 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coverager/config.php.example

    re96f9d5 r79864a1  
    2121function ob_filter_path_nicer($o)
    2222{
    23     $o = str_replace($_SERVER['DOCUMENT_ROOT'],  "{DOCROOT}/", $o);
    24     $xcachedir = realpath(dirname(__FILE__) . "/../");
    25     $o = str_replace($xcachedir . "/", "{XCache}/", $o);
    26     $o = str_replace("/home/", "{H}/", $o);
     23    $sep = DIRECTORY_SEPARATOR;
     24    $o = str_replace($_SERVER['DOCUMENT_ROOT'],  "{DOCROOT}$sep", $o);
     25    $xcachedir = realpath(dirname(__FILE__) . "$sep..$sep");
     26    $o = str_replace($xcachedir . $sep, "{XCache}$sep", $o);
     27    if ($sep == '/') {
     28        $o = str_replace("/home/", "{H}/", $o);
     29    }
    2730    return $o;
    2831}
Note: See TracChangeset for help on using the changeset viewer.