Show
Ignore:
Timestamp:
09/13/2006 11:52:38 AM (2 years ago)
Author:
moo
Message:

use DIRECTORY_SEPARATOR for windows in config example

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.0/admin/config.php.example

    r34 r161  
    1010function ob_filter_path_nicer($o) 
    1111{ 
    12     $o = str_replace("/home/", "{H}/", $o); 
     12    $sep = DIRECTORY_SEPARATOR; 
     13    $o = str_replace($_SERVER['DOCUMENT_ROOT'],  "{DOCROOT}$sep", $o); 
     14    $xcachedir = realpath(dirname(__FILE__) . "$sep..$sep"); 
     15    $o = str_replace($xcachedir . $sep, "{XCache}$sep", $o); 
     16    if ($sep == '/') { 
     17        $o = str_replace("/home/", "{H}/", $o); 
     18    } 
    1319    return $o; 
    1420}