[FOLLOWUP][FEATURE] Allow EXT: syntax in PageRenderer and Compressor 72/49672/3
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 31 Aug 2016 07:40:31 +0000 (09:40 +0200)
committerBenni Mack <benni@typo3.org>
Wed, 31 Aug 2016 09:25:06 +0000 (11:25 +0200)
The stylesheet files are included now by the PageRenderer to convert the
EXT: prefix into a real path, avoiding ERR_UNKNOWN_URL_SCHEME errors.

Resolves: #77589
Releases: master
Change-Id: I451604772f1e89957af73d68daf8a3d843b96731
Reviewed-on: https://review.typo3.org/49672
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/backend/Classes/Form/FormResultCompiler.php

index 8e50331..646b668 100644 (file)
@@ -169,15 +169,15 @@ class FormResultCompiler
     /**
      * JavaScript code added BEFORE the form is drawn:
      *
-     * @return string A <script></script> section with JavaScript.
+     * @return string
      */
     public function JStop()
     {
-        $stylesheetHtml = [];
+        $pageRenderer = $this->getPageRenderer();
         foreach ($this->stylesheetFiles as $stylesheetFile) {
-            $stylesheetHtml[] = '<link rel="stylesheet" type="text/css" href="' . $stylesheetFile . '" />';
+            $pageRenderer->addCssFile($stylesheetFile);
         }
-        return implode(LF, $stylesheetHtml);
+        return '';
     }
 
     /**