mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +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;
|
||||
|
||||
// perms
|
||||
if (!mkdir($this->_contentDir.'/_CHECK_TEST_')) {
|
||||
if (!@mkdir($this->_contentDir.'/_CHECK_TEST_')) {
|
||||
$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_', ""))) {
|
||||
$errorMsgPerms .= "Create file - ";
|
||||
}
|
||||
|
||||
if (!unlink ($this->_contentDir.'/_CHECK_TEST_/_CHECK_TEST_')) {
|
||||
$errorMsgPerms .= "Delete file - ";
|
||||
}
|
||||
|
||||
if (!rmdir($this->_contentDir.'/_CHECK_TEST_')) {
|
||||
$errorMsgPerms .= "Delete folder";
|
||||
if (!rmdir($this->_contentDir.'/_CHECK_TEST_')) {
|
||||
$errorMsgPerms .= "Delete folder";
|
||||
}
|
||||
}
|
||||
|
||||
if (!is_null($errorMsgPerms)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user