Fixed bug #7896: Hide the page browser if not enough entries are available (Thanks...
[Packages/TYPO3.CMS.git] / typo3 / alt_doc.php
index 82d479a..4541eae 100644 (file)
@@ -272,7 +272,7 @@ class SC_alt_doc {
                        // Only options related to $this->data submission are included here.
                $tce = t3lib_div::makeInstance('t3lib_TCEmain');
                $tce->stripslashes_values=0;
-               
+
                if (isset($_POST['_translation_savedok_x']))    {
                        $tce->updateModeL10NdiffData = 'FORCE_FFUPD';
                }
@@ -1170,7 +1170,7 @@ class SC_alt_doc {
                                $returnUrl = '&returnUrl='.rawurlencode(t3lib_div::_GP('returnUrl'));
                                $location = $GLOBALS['BACK_PATH'].'alt_doc.php?'.$params.$returnUrl;
 
-                               t3lib_div::redirect($location);
+                               t3lib_utility_Http::redirect($location);
                        }
                }
        }
@@ -1371,9 +1371,6 @@ class SC_alt_doc {
        function getNewIconMode($table, $key = 'saveDocNew') {
                $TSconfig = $GLOBALS['BE_USER']->getTSConfig('options.'.$key);
                $output = trim(isset($TSconfig['properties'][$table]) ? $TSconfig['properties'][$table] : $TSconfig['value']);
-               if (($key == 'saveDocNew' || $key == 'saveDocView') && $TSconfig['value'] != '0') {
-                       $output = !(isset($TSconfig['properties'][$table]) && $TSconfig['properties'][$table] == '0');
-               }
                return $output;
        }
 
@@ -1420,7 +1417,7 @@ class SC_alt_doc {
 
                        // If code is NOT set OR set to 1, then make a header location redirect to $this->retUrl
                if (!$code || $code==1) {
-                       t3lib_div::redirect($this->retUrl);
+                       t3lib_utility_Http::redirect($this->retUrl);
                } else {
                        $this->setDocument('',$this->retUrl);
                }
@@ -1449,7 +1446,7 @@ class SC_alt_doc {
                                $retUrl = $sParts['path'].'?'.$setupArr[2].'&returnUrl='.rawurlencode($retUrl);
                        }
                }
-               t3lib_div::redirect($retUrl);
+               t3lib_utility_Http::redirect($retUrl);
        }
 }