Fixed bug #9302: Make functions in tslib_eidtools public static
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Sat, 6 Sep 2008 06:17:52 +0000 (06:17 +0000)
committerDmitry Dulepov <dmitry.dulepov@gmail.com>
Sat, 6 Sep 2008 06:17:52 +0000 (06:17 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4067 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_eidtools.php

index 3167445..7920819 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-09-06  Dmitry Dulepov  <dmitry@typo3.org>
+
+       * Fixed bug #9302: Make functions in tslib_eidtools public static 
+
 2008-09-04  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Added feature #9262: Adding counting classes to table rows/columns in RTE (thanks to Thorsten Krohn)
index a500238..b22246b 100644 (file)
@@ -78,9 +78,7 @@ class tslib_eidtools {
         *
         * @return      object          Frontend User object (usually known as TSFE->fe_user)
         */
-       function initFeUser()   {
-               global $TYPO3_CONF_VARS;
-
+       public static function initFeUser()     {
                        // Include classes necessary for initializing frontend user:
                        // We will use tslib_fe to do that:
                require_once(PATH_tslib.'class.tslib_fe.php');
@@ -90,7 +88,7 @@ class tslib_eidtools {
 
                        // Make new instance of TSFE object for initializing user:
                $temp_TSFEclassName = t3lib_div::makeInstanceClassName('tslib_fe');
-               $TSFE = new $temp_TSFEclassName($TYPO3_CONF_VARS,0,0);
+               $TSFE = new $temp_TSFEclassName($GLOBALS['TYPO3_CONF_VARS'],0,0);
                $TSFE->connectToDB();
 
                        // Initialize FE user:
@@ -105,11 +103,10 @@ class tslib_eidtools {
         *
         * @return      void
         */
-       function connectDB()    {
-               global $TYPO3_DB;
-
+       public static function connectDB()      {
                /* @var $TYPO3_DB t3lib_db */
-               $TYPO3_DB->connectDB();
+               $GLOBALS['TYPO3_DB']->connectDB();
        }
 }
-?>
+
+?>
\ No newline at end of file