Ignore:
Timestamp:
2011/02/27 01:13:17 (15 years ago)
Author:
shutta
Message:

refs #515
PHP5.3での非推奨関数split()をexplode(),preg_split()へ置き換え。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/helper/SC_Helper_FileManager.php

    r20116 r20428  
    171171        $cnt = 0; 
    172172        $arrTree = array(); 
    173         $default_rank = count(split('/', $dir)); 
     173        $default_rank = count(explode('/', $dir)); 
    174174 
    175175        // 文末の/を取り除く 
     
    230230 
    231231                            // 階層を割り出す 
    232                             $arrCnt = split('/', $path); 
     232                            $arrCnt = explode('/', $path); 
    233233                            $rank = count($arrCnt); 
    234234                            $arrTree[$cnt]['rank'] = $rank - $default_rank + 1; 
     
    280280     */ 
    281281    function lfIsFileOpen($dir, $tree_status) { 
    282         $arrTreeStatus = split('\|', $tree_status); 
     282        $arrTreeStatus = explode('\|', $tree_status); 
    283283        if(in_array($dir, $arrTreeStatus)) { 
    284284            return true; 
Note: See TracChangeset for help on using the changeset viewer.