Skip to content

Commit

Permalink
改进load_ext_file函数支持 定义完整配置文件名 加载
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Nov 19, 2014
1 parent 70021b4 commit 8b903cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ThinkPHP/Common/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,7 @@ function load_ext_file($path) {
if($configs = C('LOAD_EXT_CONFIG')) {
if(is_string($configs)) $configs = explode(',',$configs);
foreach ($configs as $key=>$config){
$file = $path.'Conf/'.$config.CONF_EXT;
$file = is_file($config)? $config : $path.'Conf/'.$config.CONF_EXT;
if(is_file($file)) {
is_numeric($key)?C(load_config($file)):C($key,load_config($file));
}
Expand Down

0 comments on commit 8b903cd

Please sign in to comment.