[BUGFIX] Marker not removed from file module
authorErnesto Baschny <ernst@cron-it.de>
Thu, 26 Jan 2012 09:04:46 +0000 (10:04 +0100)
committerErnesto Baschny <ernst@cron-it.de>
Thu, 26 Jan 2012 14:09:49 +0000 (15:09 +0100)
If bookmarks are disabled, the ##SHORTCUT## marker is still shown.

Change-Id: I96ac76103fc07775e8f9a3bd94bd7a17aacd5922
Fixes: #33455
Releases: 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/8707
Reviewed-by: Ernesto Baschny
Tested-by: Ernesto Baschny
typo3/file_edit.php

index 55a1c6e..92619f0 100644 (file)
@@ -184,6 +184,8 @@ class SC_file_edit {
                        if ($GLOBALS['BE_USER']->mayMakeShortcut()) {
                                $this->MCONF['name']='xMOD_file_edit.php';
                                $docHeaderButtons['shortcut'] = $this->doc->makeShortcutIcon('target','',$this->MCONF['name'],1);
+                       } else {
+                               $docHeaderButtons['shortcut'] = '';
                        }
                } else {
                        $code .= sprintf($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:file_edit.php.coundNot'), $extList);