|
@@ 102-111 (lines=10) @@
|
| 99 |
|
throw new \InvalidArgumentException('$name must be a non empty string.', 1491681665);
|
| 100 |
|
}
|
| 101 |
|
|
| 102 |
|
if (self::createDirectoryAtWebRoot($name) !== true) {
|
| 103 |
|
FlashMessageUtility::showFlashMessage(
|
| 104 |
|
$extensionKey,
|
| 105 |
|
'Local storage ' . $name . ' could not be created!',
|
| 106 |
|
'Local storage not created',
|
| 107 |
|
FlashMessage::WARNING
|
| 108 |
|
);
|
| 109 |
|
|
| 110 |
|
return null;
|
| 111 |
|
}
|
| 112 |
|
|
| 113 |
|
$message = (is_string($message) && !empty($message) ? ' ' . $message : '');
|
| 114 |
|
/** @var $storage \TYPO3\CMS\Core\Resource\ResourceStorage */
|
|
@@ 158-165 (lines=8) @@
|
| 155 |
|
throw new \InvalidArgumentException('$name must be a non empty string.', 1491682406);
|
| 156 |
|
}
|
| 157 |
|
|
| 158 |
|
if (self::findLocalStorage($name) !== null) {
|
| 159 |
|
FlashMessageUtility::showFlashMessage(
|
| 160 |
|
$extensionKey,
|
| 161 |
|
'Local storage ' . $name . ' must be removed by an admin from the root line in the backend and web root directory.',
|
| 162 |
|
'Remove local storage',
|
| 163 |
|
FlashMessage::NOTICE
|
| 164 |
|
);
|
| 165 |
|
}
|
| 166 |
|
}
|
| 167 |
|
} |