r23408 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23407‎ | r23408 | r23409 >
Date:23:51, 25 June 2007
Author:aaron
Status:old
Tags:
Comment:
*Don't show "no reviewed versions" tag on printable pages or main page
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -946,7 +946,8 @@
947947 $tag = '<div id="mwrevisiontag" class="' . $tagClass . ' plainlinks">'.$tag.'</div>';
948948 // Set the new body HTML, place a tag on top
949949 $wgOut->mBodytext = $tag . $wgOut->mBodytext . $notes;
950 - } else {
 950+ // Add "no reviewed version" tag, but not for main page
 951+ } else if( !$wgOut->isPrintable() && !$article->mTitle==Title::newMainPage() ) {
951952 if( $this->useSimpleUI() ) {
952953 $tag .= "<span class='fr_tab_current plainlinks'></span>" .
953954 wfMsgExt('revreview-quick-none',array('parseinline'));

Status & tagging log