Ignore:
Timestamp:
2009/12/07 15:08:06 (14 years ago)
Author:
kajiwara
Message:

EC-CUBE Ver2.4.2 分コミット。詳細はこちら( http://www.ec-cube.net/release/detail.php?release_id=207

File:
1 edited

Legend:

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

    r18007 r18432  
    251251 
    252252        // HTML_PATH を削除した文字列を取得. 
    253         // FIXME OS依存の処理は別クラスに分ける? 
    254253        // Windowsの場合は, ディレクトリの区切り文字を\から/に変換する 
    255         if (substr(PHP_OS, 0, 3) == 'WIN') { 
    256             $realPath = str_replace("\\", "/", $realPath); 
    257             $htmlPath = str_replace("\\", "/", HTML_PATH); 
    258             $rootPath = str_replace($htmlPath, "", $realPath); 
    259         } else { 
    260             $htmlPath = rtrim(HTML_PATH, "/"); 
    261             $rootPath = str_replace($htmlPath, "", $realPath); 
    262             $rootPath = ltrim($rootPath, "/"); 
    263         } 
     254        $realPath = str_replace("\\", "/", $realPath); 
     255        $htmlPath = str_replace("\\", "/", HTML_PATH); 
     256 
     257        $htmlPath = rtrim($htmlPath, "/"); 
     258        $rootPath = str_replace($htmlPath, "", $realPath); 
     259        $rootPath = ltrim($rootPath, "/"); 
    264260 
    265261        return $rootPath; 
Note: See TracChangeset for help on using the changeset viewer.