Changeset 926 in svn


Ignore:
Timestamp:
2012-06-25T08:55:03Z (3 years ago)
Author:
Xuefer
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.