[BUGFIX] fe_adminLib.inc uses undefined function
authorSven Burkert <sventb@gmail.com>
Thu, 22 Dec 2011 08:50:41 +0000 (02:50 -0600)
committerGeorg Ringer <mail@ringerge.org>
Mon, 16 Jan 2012 09:28:58 +0000 (10:28 +0100)
fe_adminLib.inc calls preg_spliti() which does not exist.

Change-Id: I7c16c2590ddc193fcad99e970ab8c6975e369261
Fixes: #32773
Releases: 4.7, 4.6, 4.5, 4.4
Reviewed-on: http://review.typo3.org/7487
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Philipp Gampe
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/cms/tslib/media/scripts/fe_adminLib.inc

index 6caac21..e377dfa 100755 (executable)
@@ -1434,7 +1434,7 @@ class user_feAdmin        {
         */
        function sendHTMLMail($content,$recipient,$dummy,$fromEmail,$fromName,$replyTo='')      {
                if (trim($recipient) && trim($content)) {
-                       $parts = preg_spliti('<title>|</title>', $content, 3);
+                       $parts = preg_split('/<title>|<\/title>/i', $content, 3);
                        $subject = trim($parts[1]) ? trim($parts[1]) : 'TYPO3 FE Admin message';
 
                        $Typo3_htmlmail = t3lib_div::makeInstance('t3lib_htmlmail');