[BUGFIX] Enable XClassing of t3lib_install by replacing new
authorKay Strobach <typo3@kay-strobach.de>
Tue, 27 Mar 2012 11:24:54 +0000 (13:24 +0200)
committerGeorg Ringer <mail@ringerge.org>
Wed, 28 Mar 2012 05:32:42 +0000 (07:32 +0200)
This Fix Replaces 3 occurences of new t3lib_install with
t3lib_div::makeInstance('t3lib_install')

Change-Id: I59c3366de1d7326c8da899d7f48a6125149c6b1f
Fixes: #35272
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/9896
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/em/classes/install/class.tx_em_install.php
typo3/sysext/install/updates/class.tx_coreupdates_t3skin.php

index fc202b6..659fe75 100644 (file)
@@ -1476,7 +1476,7 @@ class tx_em_Install {
        function writeTsStyleConfig($extKey, $arr) {
 
                // Instance of install tool
-               $instObj = new t3lib_install;
+               $instObj = t3lib_div::makeInstance('t3lib_install');
                $instObj->allowUpdateLocalConf = 1;
                $instObj->updateIdentity = 'TYPO3 Extension Manager';
 
@@ -1580,7 +1580,7 @@ class tx_em_Install {
                $strippedExtensionList = $this->stripNonFrontendExtensions($newExtList);
 
                // Instance of install tool
-               $instObj = new t3lib_install;
+               $instObj = t3lib_div::makeInstance('t3lib_install');
                $instObj->allowUpdateLocalConf = 1;
                $instObj->updateIdentity = 'TYPO3 Extension Manager';
 
index 5e2d337..852013f 100644 (file)
@@ -119,7 +119,7 @@ class tx_coreupdates_t3skin extends Tx_Install_Updates_Base {
         */
        protected function writeNewExtensionList($newExtList)   {
                        // Instance of install tool
-               $instObj = new t3lib_install;
+               $instObj = t3lib_div::makeInstance('t3lib_install');
                $instObj->allowUpdateLocalConf = 1;
                $instObj->updateIdentity = 'TYPO3 Core Update Manager';