Changeset 8fbf5d2 in git


Ignore:
Timestamp:
2006-09-13T11:52:38Z (13 years ago)
Author:
Xuefer <xuefer@…>
Branches:
1.2, 1.3, 3.0, 3.1, 3.2, master, trunk
Children:
c9401d2
Parents:
9b60e6a7
Message:

use DIRECTORY_SEPARATOR for windows in config example

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/config.php.example

    r255ddf1 r8fbf5d2  
    1616function ob_filter_path_nicer($o)
    1717{
    18     $o = str_replace($_SERVER['DOCUMENT_ROOT'],  "{DOCROOT}/", $o);
    19     $xcachedir = realpath(dirname(__FILE__) . "/../");
    20     $o = str_replace($xcachedir . "/", "{XCache}/", $o);
    21     $o = str_replace("/home/", "{H}/", $o);
     18    $sep = DIRECTORY_SEPARATOR;
     19    $o = str_replace($_SERVER['DOCUMENT_ROOT'],  "{DOCROOT}$sep", $o);
     20    $xcachedir = realpath(dirname(__FILE__) . "$sep..$sep");
     21    $o = str_replace($xcachedir . $sep, "{XCache}$sep", $o);
     22    if ($sep == '/') {
     23        $o = str_replace("/home/", "{H}/", $o);
     24    }
    2225    return $o;
    2326}
Note: See TracChangeset for help on using the changeset viewer.