[TASK] Replace double quotes in exceptions 06/23706/2
authorWouter Wolters <typo3@wouterwolters.nl>
Wed, 4 Sep 2013 17:34:48 +0000 (19:34 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Mon, 9 Sep 2013 19:38:01 +0000 (21:38 +0200)
Replace double quotes in exceptions to single quotes

Change-Id: I1a98d783d34eaf4f131b14ab27098c6a4759c9a0
Resolves: #51743
Releases: 6.2, 6.1, 6.0
Reviewed-on: https://review.typo3.org/23706
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/backend/Classes/Controller/File/CreateFolderController.php
typo3/sysext/backend/Classes/Controller/File/EditFileController.php
typo3/sysext/backend/Classes/Controller/File/FileUploadController.php
typo3/sysext/backend/Classes/Controller/File/RenameFileController.php
typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php

index 9cb391f..07c7464 100644 (file)
@@ -109,7 +109,7 @@ class CreateFolderController {
                        throw new \RuntimeException($title . ': ' . $message, 1294586843);
                }
                if ($this->folderObject->getStorage()->getUid() === 0) {
-                       throw new \TYPO3\CMS\Core\Resource\Exception\InsufficientFolderAccessPermissionsException("You are not allowed to access folders outside your storages", 1375889838);
+                       throw new \TYPO3\CMS\Core\Resource\Exception\InsufficientFolderAccessPermissionsException('You are not allowed to access folders outside your storages', 1375889838);
                }
 
                // Setting the title and the icon
@@ -257,4 +257,4 @@ class CreateFolderController {
 }
 
 
-?>
\ No newline at end of file
+?>
index 67bf5f2..cd1fdb9 100644 (file)
@@ -100,7 +100,7 @@ class EditFileController {
                        throw new \RuntimeException($title . ': ' . $message, 1294586841);
                }
                if ($this->fileObject->getStorage()->getUid() === 0) {
-                       throw new \TYPO3\CMS\Core\Resource\Exception\InsufficientFileAccessPermissionsException("You are not allowed to access files outside your storages", 1375889832);
+                       throw new \TYPO3\CMS\Core\Resource\Exception\InsufficientFileAccessPermissionsException('You are not allowed to access files outside your storages', 1375889832);
                }
 
                // Setting the title and the icon
@@ -237,4 +237,4 @@ class EditFileController {
 }
 
 
-?>
\ No newline at end of file
+?>
index 82bb81a..422ad65 100644 (file)
@@ -94,7 +94,7 @@ class FileUploadController {
                        $this->folderObject = \TYPO3\CMS\Core\Resource\ResourceFactory::getInstance()->retrieveFileOrFolderObject($this->target);
                }
                if ($this->folderObject->getStorage()->getUid() === 0) {
-                       throw new \TYPO3\CMS\Core\Resource\Exception\InsufficientFolderAccessPermissionsException("You are not allowed to access folders outside your storages", 1375889834);
+                       throw new \TYPO3\CMS\Core\Resource\Exception\InsufficientFolderAccessPermissionsException('You are not allowed to access folders outside your storages', 1375889834);
                }
 
                // Cleaning and checking target directory
@@ -195,4 +195,4 @@ class FileUploadController {
 }
 
 
-?>
\ No newline at end of file
+?>
index 0125128..5b1a932 100644 (file)
@@ -96,7 +96,7 @@ class RenameFileController {
                        throw new \RuntimeException($title . ': ' . $message, 1294586844);
                }
                if ($this->fileOrFolderObject->getStorage()->getUid() === 0) {
-                       throw new \TYPO3\CMS\Core\Resource\Exception\InsufficientFileAccessPermissionsException("You are not allowed to access files outside your storages", 1375889840);
+                       throw new \TYPO3\CMS\Core\Resource\Exception\InsufficientFileAccessPermissionsException('You are not allowed to access files outside your storages', 1375889840);
                }
 
                // If a folder should be renamed, AND the returnURL should go to the old directory name, the redirect is forced
index 17a201a..acd76d3 100644 (file)
@@ -527,7 +527,7 @@ class ExtendedFileUtility extends \TYPO3\CMS\Core\Utility\File\BasicFileUtility
                        throw new \TYPO3\CMS\Core\Resource\Exception\InvalidFileException('The item ' . $identifier . ' was not a file or directory!!', 1320122453);
                }
                if ($object->getStorage()->getUid() === 0) {
-                       throw new \TYPO3\CMS\Core\Resource\Exception\InsufficientFileAccessPermissionsException("You are not allowed to access files outside your storages", 1375889830);
+                       throw new \TYPO3\CMS\Core\Resource\Exception\InsufficientFileAccessPermissionsException('You are not allowed to access files outside your storages', 1375889830);
                }
                return $object;
        }