[TASK] Remove t3lib_superadmin
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_install.php
index eecb52f..1526821 100644 (file)
@@ -67,6 +67,19 @@ class t3lib_install {
                $this->sqlHandler = t3lib_div::makeInstance('t3lib_install_Sql');
        }
 
+       /**
+        * Compatibility constructor.
+        *
+        * @deprecated since TYPO3 4.6 and will be removed in TYPO3 4.8. Use __construct() instead.
+        */
+       public function t3lib_install() {
+               t3lib_div::logDeprecatedFunction();
+                       // Note: we cannot call $this->__construct() here because it would call the derived class constructor and cause recursion
+                       // This code uses official PHP behavior (http://www.php.net/manual/en/language.oop5.basic.php) when $this in the
+                       // statically called non-static method inherits $this from the caller's scope.
+               t3lib_install::__construct();
+       }
+
 
        /**************************************
         *