(cleanup) Fixed #6957: Removed bottom button panel in alt_doc.php
authorBenni Mack <benni.mack@typo3.org>
Wed, 9 Jan 2008 14:20:11 +0000 (14:20 +0000)
committerBenni Mack <benni.mack@typo3.org>
Wed, 9 Jan 2008 14:20:11 +0000 (14:20 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2876 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/alt_doc.php

index b1cd8a2..5a05e88 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2008-01-09  Benjamin Mack  <mack@xnos.org>
 
+       * (cleanup) Fixed #6957: Removed bottom button panel in alt_doc.php
        * (feature) Added #6995 CSH text is now displayed with CSS hover when in icon mode (Thanks to Chris Lindenmueller)
 
 2008-01-08  Benjamin Mack  <mack@xnos.org>
index feb08e7..c9d4602 100755 (executable)
@@ -801,6 +801,7 @@ class SC_alt_doc {
         * Create the panel of buttons for submitting the form or otherwise perform operations.
         *
         * @return      string          HTML code, comprised of images linked to various actions.
+        * @deprecated  since TYPO3 4.2, as there are other functions (getButtons) now for getting the button panel
         */
        function makeButtonPanel()      {
                $btns = $this->getButtons();
@@ -999,16 +1000,10 @@ class SC_alt_doc {
        function compileForm($editForm) {
                global $LANG;
 
-               $panel = $this->makeButtonPanel();
-               
                $formContent = '
-
                        <!-- EDITING FORM -->
                        '.$editForm.'
 
-                       <!-- Saving buttons (same as in top) -->
-
-                       '.$panel.'
                        <input type="hidden" name="returnUrl" value="'.htmlspecialchars($this->retUrl).'" />
                        <input type="hidden" name="viewUrl" value="'.htmlspecialchars($this->viewUrl).'" />';
 
@@ -1039,7 +1034,7 @@ class SC_alt_doc {
                        // Show palettes:
                return '
                                <!-- Function menus (checkboxes for selecting options): -->
-                               <br /><br />'.t3lib_BEfunc::getFuncCheck('','SET[showPalettes]',$this->MOD_SETTINGS['showPalettes'],'alt_doc.php',t3lib_div::implodeArrayForUrl('',array_merge($this->R_URL_getvars,array('SET'=>''))),'id="checkShowPalettes"').'<label for="checkShowPalettes">'.$LANG->sL('LLL:EXT:lang/locallang_core.php:labels.showPalettes',1).'</label>';
+                               <br />'.t3lib_BEfunc::getFuncCheck('','SET[showPalettes]',$this->MOD_SETTINGS['showPalettes'],'alt_doc.php',t3lib_div::implodeArrayForUrl('',array_merge($this->R_URL_getvars,array('SET'=>''))),'id="checkShowPalettes"').'<label for="checkShowPalettes">'.$LANG->sL('LLL:EXT:lang/locallang_core.php:labels.showPalettes',1).'</label>';
        }