[BUGFIX] Respect absRefPrefix in admin panel
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / View / AdminPanelView.php
index f5bf8c1..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()
@@ -663,7 +663,8 @@ class AdminPanelView {
                                );
                                $tsfe->sys_page->versionOL('pages_language_overlay', $row);
                                if (is_array($row)) {
-                                       $icon = IconUtility::getSpriteIcon('mimetypes-x-content-page-language-overlay', array('title' => $this->extGetLL('edit_editPageOverlay', FALSE)));
+                                       $icon = '<span title="' . $this->extGetLL('edit_editPageOverlay', TRUE) . '">'
+                                               . $iconFactory->getIcon('mimetypes-x-content-page-language-overlay', Icon::SIZE_SMALL) . '</span>';
                                        $url = BackendUtility::getModuleUrl('record_edit', array(
                                                'edit[pages_language_overlay][' . $row['uid'] . ']' => 'edit',
                                                'noView' => 1,