Fixed typos in backend.php, credits Helmut Hummel
authorIngo Renner <ingo.renner@typo3.org>
Tue, 22 Apr 2008 22:08:32 +0000 (22:08 +0000)
committerIngo Renner <ingo.renner@typo3.org>
Tue, 22 Apr 2008 22:08:32 +0000 (22:08 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3620 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/backend.php

index 15d7cdf..b06a706 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -15,6 +15,7 @@
        * Changed order of cache and shortcut toolbar items
        * Changed call of json_encode in t3editor to t3lib_div::array2json
        * Added missing icon variants to t3skin, thanks to Helmut Hummel for generating them
+       * Fixed typos in backend.php, credits Helmut Hummel
 
 2008-04-22  Oliver Hader  <oliver@typo3.org>
 
index 1a59914..bba93d6 100644 (file)
@@ -59,8 +59,8 @@ class TYPO3backend {
        protected $js;
        protected $jsFiles;
        protected $toolbarItems;
-       private   $menuWithDefault = 160; // intentionally private as nobody should modify defaults
-       protected $menuWith;
+       private   $menuWidthDefault = 160; // intentionally private as nobody should modify defaults
+       protected $menuWidth;
 
        /**
         * Object for loading backend modules
@@ -114,9 +114,9 @@ class TYPO3backend {
                $this->toolbarItems = array();
                $this->initializeCoreToolbarItems();
 
-               $this->menuWith = $this->menuWithDefault;
-               if (isset($GLOBALS['TBE_STYLES']['dims']['leftMenuFrameW']) && $GLOBALS['TBE_STYLES']['dims']['leftMenuFrameW'] != (int) $this->menuWith) {
-                       $this->menuWith = $GLOBALS['TBE_STYLES']['dims']['leftMenuFrameW'];
+               $this->menuWidth = $this->menuWidthDefault;
+               if (isset($GLOBALS['TBE_STYLES']['dims']['leftMenuFrameW']) && (int) $GLOBALS['TBE_STYLES']['dims']['leftMenuFrameW'] != (int) $this->menuWidth) {
+                       $this->menuWidth = (int) $GLOBALS['TBE_STYLES']['dims']['leftMenuFrameW'];
                }
        }
 
@@ -164,16 +164,16 @@ class TYPO3backend {
 
                $menu         = $this->moduleMenu->render();
 
-               if ($this->menuWith != $this->menuWithDefault) {
+               if ($this->menuWidth != $this->menuWidthDefault) {
                        $this->css .= '
                                #typo3-logo,
                                #typo3-side-menu {
-                                       width: ' . ($this->menuWith - 1) . 'px;
+                                       width: ' . ($this->menuWidth - 1) . 'px;
                                }
 
                                #typo3-top,
                                #typo3-content {
-                                       margin-left: ' . $this->menuWith . 'px;
+                                       margin-left: ' . $this->menuWidth . 'px;
                                }
                        ';
                }