Skip to content

Commit 9bc0a6b

Browse files
committed
exit('PHPRAP V' . $app_version . ' 已安装过,请不要重复安装,如果需要重新安装,请先删除runtime/install/install.lock');
1 parent 1c474e2 commit 9bc0a6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

controllers/home/InstallController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ class InstallController extends PublicController
1313
public function beforeAction($action)
1414
{
1515
if($this->isInstalled()){
16-
exit('PHPRAP已安装过,请不要重复安装,如果需要重新安装,请先删除runtime/install/install.lock');
16+
$app_version = Yii::$app->params['app_version'];
17+
exit('PHPRAP V' . $app_version . ' 已安装过,请不要重复安装,如果需要重新安装,请先删除runtime/install/install.lock');
1718
}
1819
return true;
1920
}

0 commit comments

Comments
 (0)