将文件检查函数改为 is_file,为了提高效率,来自群友 Jesns 建议。

pull/28/head
F4NNIU 2017-12-19 16:49:17 +08:00
parent 2f2c003f65
commit f8412b828f
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@
define('APP_PATH', __DIR__ . '/../application/'); define('APP_PATH', __DIR__ . '/../application/');
// 判断是否安装FastAdmin // 判断是否安装FastAdmin
if (!file_exists(APP_PATH . 'admin/command/Install/install.lock')) if (!is_file(APP_PATH . 'admin/command/Install/install.lock'))
{ {
header("location:./install.php"); header("location:./install.php");
exit; exit;

View File

@ -14,7 +14,7 @@
define('APP_PATH', __DIR__ . '/../application/'); define('APP_PATH', __DIR__ . '/../application/');
// 判断是否安装FastAdmin // 判断是否安装FastAdmin
if (!file_exists(APP_PATH . 'admin/command/Install/install.lock')) if (!is_file(APP_PATH . 'admin/command/Install/install.lock'))
{ {
header("location:./install.php"); header("location:./install.php");
exit; exit;