Fixed bug #12889: fe_adminLib.inc usages deprecated function split() (Thanks to Steff...
authorSteffen Gebert <steffen.gebert@typo3.org>
Thu, 30 Sep 2010 16:03:58 +0000 (16:03 +0000)
committerSteffen Gebert <steffen.gebert@typo3.org>
Thu, 30 Sep 2010 16:03:58 +0000 (16:03 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@8933 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/media/scripts/fe_adminLib.inc

index 1bd50c3..a35acca 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-09-30  Steffen Gebert  <steffen@steffen-gebert.de>
+
+        * Fixed bug #12889: fe_adminLib.inc usages deprecated function split() (Thanks to Steffen Kamper and IsmaĆ«l Bidau)
+
 2010-09-29  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #15858: htlmArea RTE: Stylesheet access error in Google Chrome 7
index dbd91f2..a11fc5f 100755 (executable)
@@ -401,7 +401,7 @@ class user_feAdmin  {
                        foreach ($this->conf['parseValues.'] as $theField => $theValue) {
                                $listOfCommands = t3lib_div::trimExplode(',',$theValue,1);
                                foreach ($listOfCommands as $cmd) {
-                                       $cmdParts = split('\[|\]',$cmd);        // Point is to enable parameters after each command enclosed in brackets [..]. These will be in position 1 in the array.
+                                       $cmdParts = preg_split('/\[|\]/', $cmd);        // Point is to enable parameters after each command enclosed in brackets [..]. These will be in position 1 in the array.
                                        $theCmd=trim($cmdParts[0]);
                                        switch($theCmd) {
                                                case 'int':
@@ -653,7 +653,7 @@ class user_feAdmin  {
                        foreach ($this->conf[$this->cmdKey.'.']['evalValues.'] as $theField => $theValue) {
                                $listOfCommands = t3lib_div::trimExplode(',',$theValue,1);
                                foreach ($listOfCommands as $cmd) {
-                                       $cmdParts = split('\[|\]',$cmd);        // Point is to enable parameters after each command enclosed in brackets [..]. These will be in position 1 in the array.
+                                       $cmdParts = preg_split('/\[|\]/', $cmd);        // Point is to enable parameters after each command enclosed in brackets [..]. These will be in position 1 in the array.
                                        $theCmd = trim($cmdParts[0]);
                                        switch($theCmd) {
                                                case 'uniqueGlobal':
@@ -1207,7 +1207,7 @@ class user_feAdmin        {
                        foreach ($this->conf[$this->cmdKey.'.']['evalValues.'] as $theField => $theValue) {
                                $listOfCommands = t3lib_div::trimExplode(',',$theValue,1);
                                foreach ($listOfCommands as $cmd) {
-                                       $cmdParts = split('\[|\]',$cmd);        // Point is to enable parameters after each command enclosed in brackets [..]. These will be in position 1 in the array.
+                                       $cmdParts = preg_split('/\[|\]/', $cmd);        // Point is to enable parameters after each command enclosed in brackets [..]. These will be in position 1 in the array.
                                        $theCmd = trim($cmdParts[0]);
                                        switch($theCmd) {
                                                case 'twice':
@@ -1226,7 +1226,7 @@ class user_feAdmin        {
                        foreach ($this->conf['parseValues.'] as $theField => $theValue) {
                                $listOfCommands = t3lib_div::trimExplode(',',$theValue,1);
                                foreach ($listOfCommands as $cmd) {
-                                       $cmdParts = split('\[|\]',$cmd);        // Point is to enable parameters after each command enclosed in brackets [..]. These will be in position 1 in the array.
+                                       $cmdParts = preg_split('/\[|\]/', $cmd);        // Point is to enable parameters after each command enclosed in brackets [..]. These will be in position 1 in the array.
                                        $theCmd = trim($cmdParts[0]);
                                        switch($theCmd) {
                                                case 'multiple':
@@ -1493,7 +1493,7 @@ class user_feAdmin        {
         */
        function sendHTMLMail($content,$recipient,$dummy,$fromEmail,$fromName,$replyTo='')      {
                if (trim($recipient) && trim($content)) {
-                       $parts = spliti('<title>|</title>',$content,3);
+                       $parts = preg_spliti('<title>|</title>', $content, 3);
                        $subject = trim($parts[1]) ? trim($parts[1]) : 'TYPO3 FE Admin message';
 
                        $Typo3_htmlmail = t3lib_div::makeInstance('t3lib_htmlmail');