r47698 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47697‎ | r47698 | r47699 >
Date:10:04, 23 February 2009
Author:aaron
Status:ok
Tags:
Comment:
Use fr-under-review class here too per r47697
Modified paths:
  • /trunk/extensions/FlaggedRevs/specialpages/UnreviewedPages_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/specialpages/UnreviewedPages_body.php
@@ -83,7 +83,7 @@
8484 $title = Title::makeTitle( $row->page_namespace, $row->page_title );
8585 $link = $this->skin->makeKnownLinkObj( $title, null, 'redirect=no&forreview=1' );
8686 $hist = $this->skin->makeKnownLinkObj( $title, wfMsgHtml('hist'), 'action=history&forreview=1' );
87 - $css = $stxt = $review = '';
 87+ $css = $stxt = $review = $underReview = '';
8888 if( !is_null($size = $row->page_len) ) {
8989 $stxt = ($size == 0)
9090 ? wfMsgHtml('historyempty')
@@ -103,9 +103,12 @@
104104 $pageId = isset($row->page_id) ? $row->page_id : $row->qc_value;
105105 $key = wfMemcKey( 'unreviewedPages', 'underReview', $pageId );
106106 $val = $wgMemc->get( $key );
107 - $underReview = $val ? wfMsgHtml('unreviewed-viewing') : '';
 107+ # Show if a user is looking at this page
 108+ if( ($val = $wgMemc->get($key)) ) {
 109+ $underReview = " <b class='fr-under-review'>".wfMsgHtml('unreviewed-viewing').'</b>';
 110+ }
108111
109 - return( "<li{$css}>{$link} {$stxt} ({$hist}) {$review}{$watching} <b>{$underReview}</b></li>" );
 112+ return( "<li{$css}>{$link} {$stxt} ({$hist}) {$review}{$watching}{$underReview}</li>" );
110113 }
111114
112115 /**

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r47697* Don't show review level if there is one one available...aaron10:00, 23 February 2009

Status & tagging log