[BUGFIX] file_upload missing back icon
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Controller / File / FileUploadController.php
index 0e41ed8..f767fdf 100644 (file)
@@ -125,7 +125,8 @@ class FileUploadController {
                $pageContent = $this->doc->header($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:file_upload.php.pagetitle')) . $this->doc->section('', $form);
                // Header Buttons
                $docHeaderButtons = array(
-                       'csh' => BackendUtility::cshItem('xMOD_csh_corebe', 'file_upload', $GLOBALS['BACK_PATH'])
+                       'csh' => BackendUtility::cshItem('xMOD_csh_corebe', 'file_upload', $GLOBALS['BACK_PATH']),
+                       'back' => ''
                );
                $markerArray = array(
                        'CSH' => $docHeaderButtons['csh'],
@@ -133,6 +134,10 @@ class FileUploadController {
                        'CONTENT' => $pageContent,
                        'PATH' => $this->title
                );
+               // Back
+               if ($this->returnUrl) {
+                       $docHeaderButtons['back'] = '<a href="' . htmlspecialchars(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisUrl($this->returnUrl)) . '" class="typo3-goBack" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:labels.goBack', TRUE) . '">' . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-view-go-back') . '</a>';
+               }
                $this->content .= $this->doc->moduleBody(array(), $docHeaderButtons, $markerArray);
                $this->content .= $this->doc->endPage();
                $this->content = $this->doc->insertStylesAndJS($this->content);