[BUGFIX] Respect absRefPrefix in admin panel 35/29535/12
authorAlexander Stehlik <alexander.stehlik@gmail.com>
Mon, 14 Sep 2015 07:52:57 +0000 (09:52 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 15 Sep 2015 10:31:45 +0000 (12:31 +0200)
Use $GLOBALS['TSFE']->absRefPrefix for loading the
jsfunc.evalfield.js file in the admin panel.

Resolves: #52211
Releases: master
Change-Id: I81cf6603887bb981e0c9398a724d3fb56de240f8
Reviewed-on: http://review.typo3.org/29535
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/frontend/Classes/View/AdminPanelView.php

index d500a2e..511b2ab 100755 (executable)
@@ -284,7 +284,7 @@ class AdminPanelView {
 <a id="TSFE_ADMIN_PANEL"></a>
 <form id="TSFE_ADMIN_PANEL_FORM" name="TSFE_ADMIN_PANEL_FORM" action="' . htmlspecialchars(GeneralUtility::getIndpEnv('TYPO3_REQUEST_SCRIPT')) . '#TSFE_ADMIN_PANEL" method="get" onsubmit="document.forms.TSFE_ADMIN_PANEL_FORM[\'TSFE_ADMIN_PANEL[DUMMY]\'].value=Math.random().toString().substring(2,8)">' . $query . '<div class="typo3-adminPanel">' . $header . $moduleContent . $footer . '</div></form>';
                if ($this->getBackendUser()->uc['TSFE_adminConfig']['display_top']) {
-                       $out .= '<script type="text/javascript" src="typo3/sysext/backend/Resources/Public/JavaScript/jsfunc.evalfield.js"></script>';
+                       $out .= '<script type="text/javascript" src="' . htmlspecialchars($this->getTypoScriptFrontendController()->absRefPrefix) . 'typo3/sysext/backend/Resources/Public/JavaScript/jsfunc.evalfield.js"></script>';
                        $out .= '<script type="text/javascript">/*<![CDATA[*/' . GeneralUtility::minifyJavaScript('
                                var evalFunc = new evalFunc();
                                        // TSFEtypo3FormFieldSet()