Bug #53037 ยป Allow_Root_to_be_Link.patch
typo3/sysext/install/Classes/FolderStructure/DirectoryNode.php 2016-06-12 18:05:02.000000000 +0200 | ||
---|---|---|
// If directory is not writeable, we might have permissions to fix that
|
||
// Try it:
|
||
$result[] = $this->fixPermission();
|
||
} elseif (!$this->isDirectory()) {
|
||
} elseif (!$this->isDirectory() AND $this->getRelativePathBelowSiteRoot() !== '/') {
|
||
$status = new Status\ErrorStatus();
|
||
$status->setTitle('Path ' . $this->getRelativePathBelowSiteRoot() . ' is not a directory');
|
||
$fileType = @filetype($this->getAbsolutePath());
|
||
... | ... | |
*/
|
||
protected function getSelfStatus() {
|
||
$result = array();
|
||
if (!$this->isDirectory()) {
|
||
if (!$this->isDirectory() AND $this->getRelativePathBelowSiteRoot() !== '/') {
|
||
$status = new Status\ErrorStatus();
|
||
$status->setTitle($this->getRelativePathBelowSiteRoot() . ' is not a directory');
|
||
$status->setMessage(
|
||
... | ... | |
' but is of type ' . filetype($this->getAbsolutePath())
|
||
);
|
||
$result[] = $status;
|
||
} elseif (!$this->isDirectory() AND $this->getRelativePathBelowSiteRoot() === '/') {
|
||
$status = new Status\OkStatus();
|
||
$status->setTitle('Directory ' . $this->getRelativePathBelowSiteRoot());
|
||
$status->setMessage(
|
||
'Is a ' . filetype($this->getAbsolutePath()) . ' with the configured permissions of ' .
|
||
$this->getTargetPermission()
|
||
);
|
||
$result[] = $status;
|
||
} elseif (!$this->isWritable()) {
|
||
$status = new Status\ErrorStatus();
|
||
$status->setTitle('Directory ' . $this->getRelativePathBelowSiteRoot() . ' is not writable');
|