diff --git a/application/install/common.php b/application/install/common.php index 27e7ca8..382851b 100644 --- a/application/install/common.php +++ b/application/install/common.php @@ -12,7 +12,7 @@ * @return array 系统环境数据 * @author jry <598821125@qq.com> */ -function check_env(){ +function checkEnv(){ $items = [ 'os' => [ 'title' => '操作系统', @@ -64,7 +64,7 @@ function check_env(){ * @return array 检测数据 * @author jry <598821125@qq.com> */ -function check_dirfile(){ +function checkDirFile(){ $items = [ '0' => [ 'type' => 'file', @@ -117,7 +117,7 @@ function check_dirfile(){ * 函数检测 * @return array 检测数据 */ -function check_func_and_ext(){ +function checkFuncAndExt(){ $items = [ [ 'type' => 'ext', diff --git a/application/install/controller/Index.php b/application/install/controller/Index.php index 46b3be7..0eede32 100644 --- a/application/install/controller/Index.php +++ b/application/install/controller/Index.php @@ -26,13 +26,13 @@ class Index extends Controller { session('error', false); //环境检测 - $this->assign('check_env', check_env()); + $this->assign('checkEnv', checkEnv()); //目录文件读写检测 - $this->assign('check_dirfile', check_dirfile()); + $this->assign('checkDirFile', checkDirFile()); //函数及扩展库检测 - $this->assign('check_func_and_ext', check_func_and_ext()); + $this->assign('checkFuncAndExt', checkFuncAndExt()); return $this->fetch(); } diff --git a/application/install/view/index/step2.html b/application/install/view/index/step2.html index fdf4959..85c2fc1 100644 --- a/application/install/view/index/step2.html +++ b/application/install/view/index/step2.html @@ -21,7 +21,7 @@ - {volist name="check_env" id="item"} + {volist name="checkEnv" id="item"} {$item['title']} {$item['limit']} @@ -40,7 +40,7 @@ - {volist name="check_dirfile" id="item"} + {volist name="checkDirFile" id="item"} {$item['path']} 可写 @@ -58,7 +58,7 @@ - {volist name="check_func_and_ext" id="item"} + {volist name="checkFuncAndExt" id="item"} {$item['name']} {$item['title']}