修复install.php在Windows下的权限检测BUG

修复分组管理添加编辑时的BUG
pull/135/MERGE
Karson 2017-07-12 16:01:37 +08:00
parent 98060d5128
commit 0feaecce2d
2 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'jstree'], function (
return false;
}
$.ajax({
url: "ajax/roletree",
url: "auth/group/roletree",
type: 'post',
dataType: 'json',
data: {id: id, pid: $(this).val()},

View File

@ -25,7 +25,7 @@ function is_really_writable($file)
{
return is_writable($file);
}
if (!is_file($file) OR ( $fp = @fopen($file, FOPEN_WRITE_CREATE)) === FALSE)
if (!is_file($file) OR ( $fp = @fopen($file, "w+")) === FALSE)
{
return FALSE;
}