mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-18 07:31:36 +00:00
- do not try to create files in conten directory if it could not be
found in the first place
This commit is contained in:
parent
797cc442fd
commit
c196697420
|
@ -762,21 +762,21 @@ class Settings { /* {{{ */
|
||||||
$errorMsgPerms = null;
|
$errorMsgPerms = null;
|
||||||
|
|
||||||
// perms
|
// perms
|
||||||
if (!mkdir($this->_contentDir.'/_CHECK_TEST_')) {
|
if (!@mkdir($this->_contentDir.'/_CHECK_TEST_')) {
|
||||||
$errorMsgPerms .= "Create folder - ";
|
$errorMsgPerms .= "Create folder - ";
|
||||||
}
|
} else {
|
||||||
|
|
||||||
if (is_bool(file_put_contents($this->_contentDir.'/_CHECK_TEST_/_CHECK_TEST_', ""))) {
|
if (is_bool(file_put_contents($this->_contentDir.'/_CHECK_TEST_/_CHECK_TEST_', ""))) {
|
||||||
$errorMsgPerms .= "Create file - ";
|
$errorMsgPerms .= "Create file - ";
|
||||||
}
|
} else {
|
||||||
|
|
||||||
if (!unlink ($this->_contentDir.'/_CHECK_TEST_/_CHECK_TEST_')) {
|
if (!unlink ($this->_contentDir.'/_CHECK_TEST_/_CHECK_TEST_')) {
|
||||||
$errorMsgPerms .= "Delete file - ";
|
$errorMsgPerms .= "Delete file - ";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!rmdir($this->_contentDir.'/_CHECK_TEST_')) {
|
if (!rmdir($this->_contentDir.'/_CHECK_TEST_')) {
|
||||||
$errorMsgPerms .= "Delete folder";
|
$errorMsgPerms .= "Delete folder";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!is_null($errorMsgPerms)) {
|
if (!is_null($errorMsgPerms)) {
|
||||||
$result["contentDir"] = array(
|
$result["contentDir"] = array(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user