[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:11:40 +0000 (15:11 +0100)
If bookmarks are disabled, the ##SHORTCUT## marker is still shown.

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

index dcbedff..58a5f2b 100644 (file)
@@ -198,6 +198,8 @@ class SC_file_edit {
                        if ($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($LANG->sL('LLL:EXT:lang/locallang_core.php:file_edit.php.coundNot'), $extList);