Index: trunk/extensions/FlaggedRevs/FlaggedArticleView.php |
— | — | @@ -851,17 +851,11 @@ |
852 | 852 | # Only for pages manually made to be stable... |
853 | 853 | if ( $this->article->isPageLocked() ) { |
854 | 854 | $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 ); |
859 | 856 | # ...or unstable |
860 | 857 | } elseif ( $this->article->isPageUnlocked() ) { |
861 | 858 | $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 ); |
866 | 860 | } |
867 | 861 | return $s; |
868 | 862 | } |