Changeset 926 for trunk/admin/common.php


Ignore:
Timestamp:
2012-06-25T10:55:03+02:00 (22 months ago)
Author:
moo
Message:

improve path nicer to handle win32 DOCUMENT_ROOT

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/common.php

    r902 r926  
    100100    $sep = DIRECTORY_SEPARATOR; 
    101101    $docRoot = $_SERVER['DOCUMENT_ROOT']; 
     102    if ($sep != '/') { 
     103        $docRoot = str_replace('/', $sep, $docRoot); 
     104    } 
    102105    $list_html = str_replace($docRoot,  "{DOCROOT}" . (substr($docRoot, -1) == $sep ? $sep : ""), $list_html); 
    103106    $xcachedir = realpath(dirname(__FILE__) . "$sep..$sep"); 
Note: See TracChangeset for help on using the changeset viewer.