r63139 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63138‎ | r63139 | r63140 >
Date:22:11, 1 March 2010
Author:aaron
Status:ok
Tags:
Comment:
Made stabilityLogNotice() use stabilityLogExcerpt()
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedArticleView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedArticleView.php
@@ -851,17 +851,11 @@
852852 # Only for pages manually made to be stable...
853853 if ( $this->article->isPageLocked() ) {
854854 $s = wfMsgExt( 'revreview-locked', 'parseinline' );
855 - $logHtml = '';
856 - LogEventsList::showLogExtract( $logHtml, 'stable',
857 - $this->article->getTitle()->getPrefixedText(), '', array( 'lim' => 1 ) );
858 - $s .= $logHtml;
 855+ $s .= FlaggedRevsXML::stabilityLogExcerpt( $this->article );
859856 # ...or unstable
860857 } elseif ( $this->article->isPageUnlocked() ) {
861858 $s = wfMsgExt( 'revreview-unlocked', 'parseinline' );
862 - $logHtml = '';
863 - LogEventsList::showLogExtract( $logHtml, 'stable',
864 - $this->article->getTitle()->getPrefixedText(), '', array( 'lim' => 1 ) );
865 - $s .= $logHtml;
 859+ $s .= FlaggedRevsXML::stabilityLogExcerpt( $this->article );
866860 }
867861 return $s;
868862 }

Status & tagging log