- Timestamp:
- 2012/04/17 15:53:10 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/helper/SC_Helper_FileManager.php
r21684 r21755 46 46 // 行末の/を取り除く 47 47 while (($file = readdir($dh)) !== false) $arrDir[] = $file; 48 $dir = ereg_replace("/$", '', $dir);48 $dir = rtrim($dir, '/'); 49 49 // アルファベットと数字でソート 50 50 natcasesort($arrDir); … … 98 98 while ($file = readdir($handle)) { 99 99 // 行末の/を取り除く 100 $dir = ereg_replace("/$", '', $dir);100 $dir = rtrim($dir, '/'); 101 101 $path = $dir.'/'.$file; 102 102 if ($file != '..' && $file != '.' && !is_dir($path)) { … … 173 173 174 174 // 文末の/を取り除く 175 $dir = ereg_replace("/$", '', $dir);175 $dir = rtrim($dir, '/'); 176 176 // 最上位層を格納(user_data/) 177 177 if ($this->sfDirChildExists($dir)) { … … 217 217 if ($item != '.' && $item != '..') { 218 218 // 文末の/を取り除く 219 $dir = ereg_replace("/$", '', $dir);219 $dir = rtrim($dir, '/'); 220 220 $path = $dir.'/'.$item; 221 221 // ディレクトリのみ取得 … … 258 258 while ($file = readdir($handle)) { 259 259 // 行末の/を取り除く 260 $dir = ereg_replace("/$", '', $dir);260 $dir = rtrim($dir, '/'); 261 261 $path = $dir.'/'.$file; 262 262 if ($file != '..' && $file != '.' && is_dir($path)) {
Note: See TracChangeset
for help on using the changeset viewer.