Merge pull request #21479 from owncloud/fix-broken-state-in-htaccess-test
Remove unneeded check if htaccess test file already exists
This commit is contained in:
commit
e60dddf57d
|
@ -1201,10 +1201,6 @@ class OC_Util {
|
||||||
// creating a test file
|
// creating a test file
|
||||||
$testFile = $config->getSystemValue('datadirectory', OC::$SERVERROOT . '/data') . '/' . $fileName;
|
$testFile = $config->getSystemValue('datadirectory', OC::$SERVERROOT . '/data') . '/' . $fileName;
|
||||||
|
|
||||||
if (file_exists($testFile)) {// already running this test, possible recursive call
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$fp = @fopen($testFile, 'w');
|
$fp = @fopen($testFile, 'w');
|
||||||
if (!$fp) {
|
if (!$fp) {
|
||||||
throw new OC\HintException('Can\'t create test file to check for working .htaccess file.',
|
throw new OC\HintException('Can\'t create test file to check for working .htaccess file.',
|
||||||
|
|
Loading…
Reference in New Issue