r23254 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23253‎ | r23254 | r23255 >
Date:21:12, 22 June 2007
Author:jhb
Status:old
Tags:
Comment:
first go at ratings box
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -872,13 +872,13 @@
873873 if( $tag !='' )
874874 $tag = '<div id="mwrevisiontag_open" class="flaggedrevs_tag1 ' . $tagClass1 . ' plainlinks">'.$tag.'</div>';
875875 // Set the new body HTML, place a tag on top
876 - $wgOut->mBodytext = $tag . $wgOut->mBodytext . $notes;
877 - $extra="<div id='mwrevisiontag_closed' class='flaggedrevs_short $tagClass'></div>
 876+
 877+ $tag .="<div id='mwrevisiontag_closed' class='flaggedrevs_short $tagClass'></div>
878878 <script type='text/javascript'>
879879 var review_open = document.getElementById('mwrevisiontag_open');
880880 review_open.style.display = 'none';
881881 </script>";
882 - $wgOut->addHTML($extra);
 882+ $wgOut->mBodytext = $tag . $wgOut->mBodytext . $notes;
883883
884884 } else {
885885 $tag = '<div id="mwrevisiontag_open" class="mw-warning plainlinks">'.wfMsgExt('revreview-noflagged', array('parseinline')).'</div>';

Status & tagging log