From 8c14e2df88297a87d6d66d76223a0d29f656bf2f Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 23 Dec 2008 17:14:33 +0000 Subject: [PATCH] * Like r44911 but for MediaWiki:Difference message: switching from raw HTML to wiki text * Whitespaces tweaks --- RELEASE-NOTES | 4 ++-- includes/diff/DifferenceEngine.php | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index cc262f22fd..fef3c21b87 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -444,8 +444,8 @@ The following extensions are migrated into MediaWiki 1.14: * Section anchors now have an "id" attribute as well as a "name" attribute, even when Tidy is not used * (bug 16026) revision-info, revision-info-current, cannotdelete, - redirectedfrom and historywarning messages now use Wiki text rather than raw - HTML markup + redirectedfrom, historywarning and difference messages now use Wiki text + rather than raw HTML markup * (bug 13835) Fix rendering of {{filepath:Wiki.png|nowiki}} === API changes in 1.14 === diff --git a/includes/diff/DifferenceEngine.php b/includes/diff/DifferenceEngine.php index f418b5a3a4..52b6c098cd 100644 --- a/includes/diff/DifferenceEngine.php +++ b/includes/diff/DifferenceEngine.php @@ -145,7 +145,7 @@ CONTROL; } else { $wgOut->setPageTitle( $oldTitle . ', ' . $newTitle ); } - $wgOut->setSubtitle( wfMsg( 'difference' ) ); + $wgOut->setSubtitle( wfMsgExt( 'difference', array( 'parseinline' ) ) ); $wgOut->setRobotPolicy( 'noindex,nofollow' ); if ( !( $this->mOldPage->userCanRead() && $this->mNewPage->userCanRead() ) ) { @@ -219,11 +219,11 @@ CONTROL; $newminor = ''; if ($this->mOldRev->mMinorEdit == 1) { - $oldminor = Xml::span( wfMsg( 'minoreditletter'), 'minor' ) . ' '; + $oldminor = Xml::span( wfMsg( 'minoreditletter' ), 'minor' ) . ' '; } if ($this->mNewRev->mMinorEdit == 1) { - $newminor = Xml::span( wfMsg( 'minoreditletter'), 'minor' ) . ' '; + $newminor = Xml::span( wfMsg( 'minoreditletter' ), 'minor' ) . ' '; } $rdel = ''; $ldel = ''; @@ -231,10 +231,10 @@ CONTROL; $revdel = SpecialPage::getTitleFor( 'Revisiondelete' ); if( !$this->mOldRev->userCan( Revision::DELETED_RESTRICTED ) ) { // If revision was hidden from sysops - $ldel = wfMsgHtml('rev-delundel'); + $ldel = wfMsgHtml( 'rev-delundel' ); } else { $ldel = $sk->makeKnownLinkObj( $revdel, - wfMsgHtml('rev-delundel'), + wfMsgHtml( 'rev-delundel' ), 'target=' . urlencode( $this->mOldRev->mTitle->getPrefixedDbkey() ) . '&oldid=' . urlencode( $this->mOldRev->getId() ) ); // Bolden oversighted content @@ -245,13 +245,13 @@ CONTROL; // We don't currently handle well changing the top revision's settings if( $this->mNewRev->isCurrent() ) { // If revision was hidden from sysops - $rdel = wfMsgHtml('rev-delundel'); + $rdel = wfMsgHtml( 'rev-delundel' ); } else if( !$this->mNewRev->userCan( Revision::DELETED_RESTRICTED ) ) { // If revision was hidden from sysops - $rdel = wfMsgHtml('rev-delundel'); + $rdel = wfMsgHtml( 'rev-delundel' ); } else { $rdel = $sk->makeKnownLinkObj( $revdel, - wfMsgHtml('rev-delundel'), + wfMsgHtml( 'rev-delundel' ), 'target=' . urlencode( $this->mNewRev->mTitle->getPrefixedDbkey() ) . '&oldid=' . urlencode( $this->mNewRev->getId() ) ); // Bolden oversighted content @@ -442,7 +442,7 @@ CONTROL; $wgOut->addHTML( $header ); - $wgOut->setSubtitle( wfMsg( 'difference' ) ); + $wgOut->setSubtitle( wfMsgExt( 'difference', array( 'parseinline' ) ) ); $wgOut->setRobotPolicy( 'noindex,nofollow' ); wfProfileOut( __METHOD__ ); @@ -668,7 +668,7 @@ CONTROL; function localiseLineNumbersCb( $matches ) { global $wgLang; - return wfMsgExt( 'lineno', array('parseinline'), $wgLang->formatNum( $matches[1] ) ); + return wfMsgExt( 'lineno', array( 'parseinline' ), $wgLang->formatNum( $matches[1] ) ); } -- 2.20.1