From 6cd5179d61b36016b2e43cd9d8e7eed3fe42b25c Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Sun, 4 Mar 2007 15:44:38 +0000 Subject: [PATCH] Fix r20109, which was kind of insane. It was a wikitext list with only some output items part of the list, with
s at the end of each item. Converted to a proper classed and id'd XHTML list. --- RELEASE-NOTES | 3 ++- includes/Parser.php | 4 ++-- includes/SpecialWatchlist.php | 10 +++++----- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 4e102b7512..a1d3e03a6f 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -244,7 +244,8 @@ lighter making things easier to read. * (bug 8539) Enable PLURAL option for another message of recentchanges. * (bug 8728) MediaWiki:Badfiletype splitted into 3 messages * (bug 9131) Be strict with offset values in SpecialContributions for Postgres -* (bug 8747) Reformat output of removed entries from watchlist +* (bug 8747) When unwatching pages from Special:Watchlist/edit, put the + confirmation messages in a proper list with a CSS class and id. * (bug 9155) Allow footer info to wrap in Monobook == Languages updated == diff --git a/includes/Parser.php b/includes/Parser.php index 14d45bd3de..26e532c42c 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -4562,7 +4562,7 @@ class Parser .+? # Section title... \\2 # Ending = count must match start (?:$comment|<\/?noinclude>|[ \\t]+)* # Trailing whitespace ok - $ + \n? | .*? @@ -4721,7 +4721,7 @@ class OnlyIncludeReplacer { if ( substr( $matches[1], -1 ) == "\n" ) { $this->output .= substr( $matches[1], 0, -1 ); } else { - $this->output .= $matches[1]; + $this->output .= $matche s[1]; } } } diff --git a/includes/SpecialWatchlist.php b/includes/SpecialWatchlist.php index 8d741ddd4d..89047f44ee 100644 --- a/includes/SpecialWatchlist.php +++ b/includes/SpecialWatchlist.php @@ -85,22 +85,22 @@ function wfSpecialWatchlist( $par ) { # Deleting items from watchlist if(($action == 'submit') && isset($remove) && is_array($id)) { $wgOut->addWikiText( wfMsg( 'removingchecked' ) ); - $wgOut->addHTML( '

' ); + $wgOut->addHTML( "

\n

" . wfMsg( 'wldone' ) . "

\n" ); } $dbr = wfGetDB( DB_SLAVE, 'watchlist' ); -- 2.20.1