Changeset 17042


Ignore:
Timestamp:
2008/02/13 17:18:18 (16 years ago)
Author:
satou
Message:

#205 WEBサーバでAlias使用時にLC_Page::getLocation()が正常に動作しない不具合を改修。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/class/pages/LC_Page.php

    r16754 r17042  
    213213        // $path が / で始まっている場合 
    214214        if (substr($path, 0, 1) == "/") { 
    215             $realPath = realpath(substr_replace(HTML_PATH, "", 
    216                                 strlen(HTML_PATH) - strlen(URL_DIR), 
    217                                 strlen(URL_DIR)) . $path); 
     215            $realPath = realpath(HTML_PATH . substr_replace($path, "", 0, strlen(URL_DIR))); 
     216        // 相対パスの場合 
    218217        } else { 
    219             // 相対パスの場合 
    220218            $realPath = realpath($path); 
    221219        } 
Note: See TracChangeset for help on using the changeset viewer.