Ignore:
Timestamp:
2007/09/06 17:32:32 (17 years ago)
Author:
adachi
Message:

getLocation()をwindowsでも動作するように修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/LC_Page.php

    • Property svn:eol-style set to LF
    r15591 r15633  
    205205            // 相対パスの場合 
    206206            $realPath = realpath($path); 
     207        } 
     208 
     209        // FIXME OS依存の処理は別クラスに分ける? 
     210        // Windowsの場合は, ディレクトリの区切り文字を\から/に変換する 
     211        if (substr(PHP_OS, 0, 3) == 'WIN') { 
     212            $realPath = str_replace("\\", "/", $realPath); 
    207213        } 
    208214 
Note: See TracChangeset for help on using the changeset viewer.