Index: trunk/extensions/FlaggedRevs/FlaggedArticleView.php |
— | — | @@ -300,7 +300,6 @@ |
301 | 301 | # Get quality level |
302 | 302 | $quality = FlaggedRevs::isQuality( $flags ); |
303 | 303 | $pristine = FlaggedRevs::isPristine( $flags ); |
304 | | - $revsSince = FlaggedRevs::getRevCountSince( $this->article, $srev->getRevId() ); |
305 | 304 | # Get stable version sync status |
306 | 305 | $synced = FlaggedRevs::stableVersionIsSynced( $srev, $this->article ); |
307 | 306 | if( $synced ) { |
— | — | @@ -311,6 +310,7 @@ |
312 | 311 | $pending = ''; |
313 | 312 | # Give notice to newer users if an unreviewed edit was completed... |
314 | 313 | if( !$synced && $wgRequest->getVal('shownotice') && !$wgUser->isAllowed('review') ) { |
| 314 | + $revsSince = FlaggedRevs::getRevCountSince( $this->article, $srev->getRevId() ); |
315 | 315 | $tooltip = wfMsgHtml('revreview-draft-title'); |
316 | 316 | $pending = "{$prot}<span class='fr-icon-current' title=\"{$tooltip}\"></span>" . |
317 | 317 | wfMsgExt('revreview-edited',array('parseinline'),$srev->getRevId(),$revsSince); |
— | — | @@ -323,6 +323,7 @@ |
324 | 324 | # Construct some tagging for non-printable outputs. Note that the pending |
325 | 325 | # notice has all this info already, so don't do this if we added that already. |
326 | 326 | if( !$wgOut->isPrintable() && !$pending && !($this->article->lowProfileUI() && $synced) ) { |
| 327 | + $revsSince = FlaggedRevs::getRevCountSince( $this->article, $srev->getRevId() ); |
327 | 328 | $class = 'fr-icon-current'; // default |
328 | 329 | $tooltip = 'revreview-draft-title'; |
329 | 330 | // Simple icon-based UI |
— | — | @@ -388,7 +389,6 @@ |
389 | 390 | # Get quality level |
390 | 391 | $quality = FlaggedRevs::isQuality( $flags ); |
391 | 392 | $pristine = FlaggedRevs::isPristine( $flags ); |
392 | | - $revsSince = FlaggedRevs::getRevCountSince( $this->article, $srev->getRevId() ); |
393 | 393 | $text = $frev->getRevText(); |
394 | 394 | $parserOut = FlaggedRevs::parseStableText( $this->article, $text, $frev->getRevId() ); |
395 | 395 | # Construct some tagging for non-printable outputs. Note that the pending |
— | — | @@ -399,6 +399,8 @@ |
400 | 400 | $tooltip = wfMsgHtml($tooltip); |
401 | 401 | // Simple icon-based UI |
402 | 402 | if( FlaggedRevs::useSimpleUI() ) { |
| 403 | + $revsSince = FlaggedRevs::getRevCountSince( $this->article, $srev->getRevId() ); |
| 404 | + |
403 | 405 | $msg = $quality ? 'revreview-quick-quality-old' : 'revreview-quick-basic-old'; |
404 | 406 | $html = "{$prot}<span class='{$class}' title=\"{$tooltip}\"></span>" . |
405 | 407 | wfMsgExt( $msg, array('parseinline'), $frev->getRevId(), $time ); |
— | — | @@ -442,8 +444,6 @@ |
443 | 445 | # Get quality level |
444 | 446 | $quality = FlaggedRevs::isQuality( $flags ); |
445 | 447 | $pristine = FlaggedRevs::isPristine( $flags ); |
446 | | - # We will be looking at the reviewed revision... |
447 | | - $revsSince = FlaggedRevs::getRevCountSince( $this->article, $srev->getRevId() ); |
448 | 448 | # Get parsed stable version |
449 | 449 | $parserOut = FlaggedRevs::getPageCache( $this->article, $wgUser ); |
450 | 450 | if( $parserOut == false ) { |
— | — | @@ -455,6 +455,7 @@ |
456 | 456 | $synced = FlaggedRevs::stableVersionIsSynced( $srev, $this->article, $parserOut, null ); |
457 | 457 | # Construct some tagging |
458 | 458 | if( !$wgOut->isPrintable() && !($this->article->lowProfileUI() && $synced) ) { |
| 459 | + $revsSince = FlaggedRevs::getRevCountSince( $this->article, $srev->getRevId() ); |
459 | 460 | $class = $quality ? 'fr-icon-quality' : 'fr-icon-stable'; |
460 | 461 | $tooltip = $quality ? 'revreview-quality-title' : 'revreview-stable-title'; |
461 | 462 | $tooltip = wfMsgHtml($tooltip); |