[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)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 11 Apr 2012 13:19:36 +0000 (15:19 +0200)
This Fix Replaces 3 occurences of new t3lib_install with
t3lib_div::makeInstance('t3lib_install')

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

index 120bdc0..e5b1517 100644 (file)
@@ -1430,7 +1430,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';
 
@@ -1534,7 +1534,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 df92099..ec20821 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';