[BUGFIX] Wrong RequireJs paths for jQuery in frontend 81/35281/3
authorStanislas Rolland <typo3@sjbr.ca>
Thu, 11 Dec 2014 03:24:19 +0000 (22:24 -0500)
committerAlexander Opitz <opitz.alexander@googlemail.com>
Mon, 22 Dec 2014 09:20:06 +0000 (10:20 +0100)
The RequireJS paths set by page renderer for jQuery components is wrong
in frontend.
Add missing backpath.

Releases: master
Resolves: #63759
Change-Id: If82ddbf820e03acaf6d8266d3b76f14a95348e38
Reviewed-on: http://review.typo3.org/35281
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Alexander Opitz <opitz.alexander@googlemail.com>
typo3/sysext/core/Classes/Page/PageRenderer.php

index 7aa8e88..b25baf6 100644 (file)
@@ -1618,11 +1618,11 @@ class PageRenderer implements \TYPO3\CMS\Core\SingletonInterface {
                if (count($this->requireJsConfig) === 0) {
                        // first, load all paths for the namespaces, and configure contrib libs.
                        $this->requireJsConfig['paths'] = array(
-                               'jquery-ui' => 'contrib/jquery-ui',
-                               'jquery' => 'contrib/jquery',
-                               'moment' => 'contrib/moment/moment.min',
-                               'twbs' => 'contrib/twbs/bootstrap.min',
-                               'twbs/bootstrap-datetimepicker' => 'contrib/twbs/bootstrap-datetimepicker.min',
+                               'jquery-ui' => $this->backPath . 'contrib/jquery-ui',
+                               'jquery' => $this->backPath . 'contrib/jquery',
+                               'moment' => $this->backPath . 'contrib/moment/moment.min',
+                               'twbs' => $this->backPath . 'contrib/twbs/bootstrap.min',
+                               'twbs/bootstrap-datetimepicker' => $this->backPath . 'contrib/twbs/bootstrap-datetimepicker.min',
                        );
                        // get all extensions that are loaded
                        $loadedExtensions = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getLoadedExtensionListArray();
@@ -2911,4 +2911,4 @@ class PageRenderer implements \TYPO3\CMS\Core\SingletonInterface {
                }
        }
 
-}
+}
\ No newline at end of file