Fixed bug #6193: Object copied in t3lib_div::makeInstance()
authorMichael Stucki <michael.stucki@typo3.org>
Tue, 16 Oct 2007 17:46:29 +0000 (17:46 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Tue, 16 Oct 2007 17:46:29 +0000 (17:46 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2576 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_div.php

index f984d93..d59ee1e 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2007-10-16  Michael Stucki  <michael@typo3.org>
 
        * Fixed bug #3552: Fatal error during backend edit
+       * Fixed bug #6193: Object copied in t3lib_div::makeInstance()
 
 2007-10-16  Thorsten Kahler  <thorsten.kahler@dkd.de>
 
index 2fd923e..e0e9427 100755 (executable)
@@ -4109,8 +4109,11 @@ class t3lib_div {
                        }
                }
 
+                       // Get final classname
+               $className =  t3lib_div::makeInstanceClassName($className);
+
                        // Return object.
-               return class_exists('ux_'.$className) ? t3lib_div::makeInstance('ux_'.$className) : new $className;
+               return new $className;
        }
 
        /**