[BUGFIX] Do not use self:: within closures 89/30489/2
authorMarkus Klein <klein.t3@mfc-linz.at>
Thu, 29 May 2014 14:39:20 +0000 (16:39 +0200)
committerMarkus Klein <klein.t3@mfc-linz.at>
Thu, 29 May 2014 14:43:23 +0000 (16:43 +0200)
This is not possible in PHP 5.3.

Resolves: #59203
Releases: 6.2
Change-Id: I108578f7635c50493a3b5d7a7fc81c021805abf8
Reviewed-on: https://review.typo3.org/30489
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/core/Classes/Utility/GeneralUtility.php

index f74620e..c872a6d 100644 (file)
@@ -4883,7 +4883,6 @@ Connection: close
         * @see makeRedirectUrl()
         */
        static public function substUrlsInPlainText($message, $urlmode = '76', $index_script_url = '') {
-               $lengthLimit = FALSE;
                switch ((string) $urlmode) {
                        case '':
                                $lengthLimit = FALSE;
@@ -4903,7 +4902,7 @@ Connection: close
                        $messageSubstituted = preg_replace_callback(
                                '/(http|https):\\/\\/.+(?=[\\]\\.\\?]*([\\! \'"()<>]+|$))/iU',
                                function (array $matches) use ($lengthLimit, $index_script_url) {
-                                       return self::makeRedirectUrl($matches[0], $lengthLimit, $index_script_url);
+                                       return GeneralUtility::makeRedirectUrl($matches[0], $lengthLimit, $index_script_url);
                                },
                                $message
                        );