[BUGFIX] Enable file upload from Frontend context 64/46664/2
authorXavier Perseguers <xavier@typo3.org>
Fri, 5 Feb 2016 16:31:45 +0000 (17:31 +0100)
committerXavier Perseguers <xavier@typo3.org>
Mon, 15 Feb 2016 08:03:44 +0000 (09:03 +0100)
Change-Id: Ie2bf887fc9ec49f39af1ffe85bf0aea69c29fe8c
Releases: master, 7.6
Resolves: #73154
Reviewed-on: https://review.typo3.org/46664
Reviewed-by: Xavier Perseguers <xavier@typo3.org>
Tested-by: Xavier Perseguers <xavier@typo3.org>
typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php

index 5375fb8..15ff3f3 100644 (file)
@@ -391,10 +391,14 @@ class ExtendedFileUtility extends BasicFileUtility
      * @param string $localizationKey
      * @param array $replaceMarkers
      * @param int $severity
+     * @return void
      * @throws \InvalidArgumentException
      */
     protected function addMessageToFlashMessageQueue($localizationKey, array $replaceMarkers = [], $severity = FlashMessage::ERROR)
     {
+        if (TYPO3_MODE !== 'BE') {
+            return;
+        }
         $label = $this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/fileMessages.xlf:' . $localizationKey);
         $message = vsprintf($label, $replaceMarkers);
         $flashMessage = GeneralUtility::makeInstance(