[BUGFIX] file_upload missing back icon
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Controller / File / CreateFolderController.php
index 0cc9f99..b3669ba 100644 (file)
@@ -221,7 +221,13 @@ class CreateFolderController {
                $pageContent .= $this->doc->section($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:file_newfolder.php.newfile'), $code);
                $pageContent .= $this->doc->sectionEnd();
                $pageContent .= '</form>';
-               $docHeaderButtons = array();
+               $docHeaderButtons = array(
+                       'back' => ''
+               );
+               // 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>';
+               }
                // Add the HTML as a section:
                $markerArray = array(
                        'CSH' => $docHeaderButtons['csh'],