Ignore:
Timestamp:
2013/08/05 19:57:31 (11 years ago)
Author:
nanasess
Message:

#1943 (SC_ClassAutoloader でのクラスの存在チェック)

  • 存在チェックを追加
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/SC_ClassAutoloader.php

    r22856 r23028  
    119119            } 
    120120        } 
    121         include $classpath; 
     121        if (file_exists($classpath)) { 
     122            include $classpath; 
     123        } else { 
     124            $arrPath = explode(PATH_SEPARATOR, get_include_path()); 
     125            foreach ($arrPath as $path) { 
     126                if (file_exists($path . '/' .$classpath)) { 
     127                    include $classpath; 
     128                    break; 
     129                } 
     130            } 
     131        } 
    122132    } 
    123133} 
Note: See TracChangeset for help on using the changeset viewer.