update environment checker
This commit is contained in:
parent
c8af8ccd3e
commit
2d68b3c818
|
|
@ -40,11 +40,12 @@
|
|||
'bootstrap/cache',
|
||||
'storage',
|
||||
'plugins',
|
||||
'public',
|
||||
],
|
||||
];
|
||||
|
||||
foreach ($requirements['extensions'] as $extension) {
|
||||
if (! extension_loaded($extension)) {
|
||||
if (!extension_loaded($extension)) {
|
||||
die_with_utf8_encoding(
|
||||
"[Error] You have not installed the $extension extension <br>".
|
||||
"[错误] 你尚未安装 $extension 扩展!安装方法请自行搜索。"
|
||||
|
|
@ -55,14 +56,14 @@
|
|||
foreach ($requirements['write_permission'] as $dir) {
|
||||
$realPath = realpath(__DIR__."/../$dir");
|
||||
|
||||
if (! is_writable($realPath)) {
|
||||
if (!is_writable($realPath)) {
|
||||
die_with_utf8_encoding(
|
||||
"[Error] The directory '$dir' is not writable. <br>".
|
||||
"[错误] 目录 '$dir' 不可写,请检查该目录的权限。"
|
||||
);
|
||||
}
|
||||
|
||||
if (! is_writable($realPath)) {
|
||||
if (!is_writable($realPath)) {
|
||||
die_with_utf8_encoding(
|
||||
"[Error] The program lacks write permission to directory '$dir' <br>".
|
||||
"[错误] 程序缺少对 '$dir' 目录的写权限,请手动授权。"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user