Follow-up to #16462: Use constant LF instead of chr(10) (Thanks to Georg Ringer)
authorChristian Kuhn <lolli@schwarzbu.ch>
Wed, 19 Jan 2011 20:50:34 +0000 (20:50 +0000)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 19 Jan 2011 20:50:34 +0000 (20:50 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10142 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.browse_links.php
typo3/sysext/install/updates/class.tx_coreupdates_imagelink.php

index b438791..768267e 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-01-19  Christian Kuhn  <lolli@schwarzbu.ch>
+
+       * Follow-up to #16462: Use constant LF instead of chr(10) (Thanks to Georg Ringer)
+
 2011-01-19  Steffen Gebert  <steffen@steffen-gebert.de>
 
        * Fixed bug #17138: Superfluous backspace in Error Message if no Install Tool Password is set (Thanks to Sebastian Michaelsen)
index 046403a..5eeed15 100644 (file)
@@ -814,7 +814,7 @@ class browse_links {
 
                        // CurrentUrl - the current link url must be passed around if it exists
                if ($this->mode == 'wizard')    {
-                       $currentValues = t3lib_div::trimExplode(chr(10), trim($this->P['currentValue']));
+                       $currentValues = t3lib_div::trimExplode(LF, trim($this->P['currentValue']));
                        if (count($currentValues) > 0) {
                                $currentValue = array_pop($currentValues);
                        } else {
index 6fcaa6b..aedd9d4 100644 (file)
@@ -82,9 +82,9 @@ class tx_coreupdates_imagelink extends Tx_Install_Updates_Base {
 
                        foreach ($affectedRows as $row) {
                                $newImageLink = t3lib_div::trimExplode(',', $row['image_link']);
-                               $newImageLink = implode(chr(10), $newImageLink);
+                               $newImageLink = implode(LF, $newImageLink);
                                $GLOBALS['TYPO3_DB']->exec_UPDATEquery('tt_content', 'uid=' . $row['uid'], array('image_link' => $newImageLink));
-                               $dbQueries[] = str_replace(chr(10), ' ', $GLOBALS['TYPO3_DB']->debug_lastBuiltQuery);
+                               $dbQueries[] = str_replace(LF, ' ', $GLOBALS['TYPO3_DB']->debug_lastBuiltQuery);
                                if ($GLOBALS['TYPO3_DB']->sql_error()) {
                                        $customMessages = 'SQL-ERROR: ' . htmlspecialchars($GLOBALS['TYPO3_DB']->sql_error());
                                        $result = $result & FALSE;