mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-17 23:21:19 +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,20 +762,20 @@ 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_', ""))) {
|
||||||
|
$errorMsgPerms .= "Create file - ";
|
||||||
|
} else {
|
||||||
|
if (!unlink ($this->_contentDir.'/_CHECK_TEST_/_CHECK_TEST_')) {
|
||||||
|
$errorMsgPerms .= "Delete file - ";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (is_bool(file_put_contents($this->_contentDir.'/_CHECK_TEST_/_CHECK_TEST_', ""))) {
|
if (!rmdir($this->_contentDir.'/_CHECK_TEST_')) {
|
||||||
$errorMsgPerms .= "Create file - ";
|
$errorMsgPerms .= "Delete folder";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!unlink ($this->_contentDir.'/_CHECK_TEST_/_CHECK_TEST_')) {
|
|
||||||
$errorMsgPerms .= "Delete file - ";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!rmdir($this->_contentDir.'/_CHECK_TEST_')) {
|
|
||||||
$errorMsgPerms .= "Delete folder";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!is_null($errorMsgPerms)) {
|
if (!is_null($errorMsgPerms)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user