Revision: 48315
Author:   demon
Date:     2009-03-11 15:49:28 +0000 (Wed, 11 Mar 2009)

Log Message:
-----------
(bug 17938) Backporting r48311 to 1.14

Modified Paths:
--------------
    branches/REL1_14/phase3/CREDITS
    branches/REL1_14/phase3/RELEASE-NOTES
    branches/REL1_14/phase3/includes/parser/Parser.php

Modified: branches/REL1_14/phase3/CREDITS
===================================================================
--- branches/REL1_14/phase3/CREDITS     2009-03-11 14:48:34 UTC (rev 48314)
+++ branches/REL1_14/phase3/CREDITS     2009-03-11 15:49:28 UTC (rev 48315)
@@ -66,6 +66,7 @@
 * Juliano F. Ravasi
 * Lucas Garczewski
 * Louperivois
+* Luigi Corsaro
 * Marooned
 * Max Semenik
 * Michael De La Rue

Modified: branches/REL1_14/phase3/RELEASE-NOTES
===================================================================
--- branches/REL1_14/phase3/RELEASE-NOTES       2009-03-11 14:48:34 UTC (rev 
48314)
+++ branches/REL1_14/phase3/RELEASE-NOTES       2009-03-11 15:49:28 UTC (rev 
48315)
@@ -28,6 +28,7 @@
 * (bug 17737) Fixed russian URLs for Special:BookSources
 * (bug 17713) Using links with only an anchor no longer add an dummy entry in
   the pagelinks table
+* (bug 17897) Fixed string offset error in <pre> tags
 
 == Changes since 1.14.0rc1 ==
 

Modified: branches/REL1_14/phase3/includes/parser/Parser.php
===================================================================
--- branches/REL1_14/phase3/includes/parser/Parser.php  2009-03-11 14:48:34 UTC 
(rev 48314)
+++ branches/REL1_14/phase3/includes/parser/Parser.php  2009-03-11 15:49:28 UTC 
(rev 48315)
@@ -2178,7 +2178,7 @@
                                                $inBlockElem = true;
                                        }
                                } else if ( !$inBlockElem && !$this->mInPre ) {
-                                       if ( ' ' == $t{0} and ( 
$this->mLastSection === 'pre' or trim($t) != '' ) ) {
+                                       if ( ' ' == substr( $t, 0, 1 ) and ( 
$this->mLastSection === 'pre' or trim($t) != '' ) ) {
                                                // pre
                                                if ($this->mLastSection !== 
'pre') {
                                                        $paragraphStack = false;



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to