Cleanup (wrong global statement) in new TYPO3AJAX class
authorBenni Mack <benni.mack@typo3.org>
Wed, 13 Feb 2008 15:13:27 +0000 (15:13 +0000)
committerBenni Mack <benni.mack@typo3.org>
Wed, 13 Feb 2008 15:13:27 +0000 (15:13 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3156 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/classes/class.typo3ajax.php

index f723b03..8bde3be 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-02-13  Benjamin Mack  <mack@xnos.org>
+
+       * Cleanup (wrong global statement) in new TYPO3AJAX class
+
 2008-02-13  Ingo Renner  <ingo@typo3.org>
 
        * removed ugly background color from save buttons in docheader when they were focused
index 7df0858..510c9fd 100644 (file)
@@ -48,10 +48,10 @@ class TYPO3AJAX {
         * @return      void
         */
        public function __construct($ajaxId) {
-               global $TYPO3_CONF_VARS;
+               global $LANG;
 
-               if($GLOBALS['LANG']->charSet != $this->charset) {
-                       $this->charset = $GLOBALS['LANG']->charSet;
+               if($LANG->charSet != $this->charset) {
+                       $this->charset = $LANG->charSet;
                }
 
                $this->ajaxId = $ajaxId;
@@ -247,4 +247,4 @@ if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/class
        include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/classes/class.typo3ajax.php']);
 }
 
-?>
\ No newline at end of file
+?>