Changeset 18432 for branches/version-2/data/class/pages/LC_Page.php
- Timestamp:
- 2009/12/07 15:08:06 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2/data/class/pages/LC_Page.php
r18007 r18432 251 251 252 252 // HTML_PATH を削除した文字列を取得. 253 // FIXME OS依存の処理は別クラスに分ける?254 253 // 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, "/"); 264 260 265 261 return $rootPath;
Note: See TracChangeset
for help on using the changeset viewer.