Changeset 523


Ignore:
Timestamp:
2008-02-18T12:42:01+01:00 (6 years ago)
Author:
moo
Message:

fix possible wrong separator in docuemnt root

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/config.php.example

    r517 r523  
    2020{ 
    2121    $sep = DIRECTORY_SEPARATOR; 
    22     $o = str_replace($_SERVER['DOCUMENT_ROOT'],  "{DOCROOT}$sep", $o); 
     22    $o = str_replace($_SERVER['DOCUMENT_ROOT'],  "{DOCROOT}" . (substr($d, -1) == $sep ? $sep : ""), $o); 
    2323    $xcachedir = realpath(dirname(__FILE__) . "$sep..$sep"); 
    2424    $o = str_replace($xcachedir . $sep, "{XCache}$sep", $o); 
Note: See TracChangeset for help on using the changeset viewer.