r33252 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r33251‎ | r33252 | r33253 >
Date:17:50, 13 April 2008
Author:nikerabbit
Status:old
Tags:
Comment:
* Compatibility hack
Modified paths:
  • /trunk/extensions/CleanChanges/CleanChanges_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CleanChanges/CleanChanges_body.php
@@ -569,4 +569,13 @@
570570 }
571571 }
572572
 573+ protected static function usePatrol() {
 574+ global $wgUser, $wgUseRCPatrol;
 575+ if ( is_callable(array($wgUser,'useRCPatrol')) ) {
 576+ return $wgUser->useRCPatrol();
 577+ } else {
 578+ return $wgUseRCPatrol && ($wgUser->isAllowed('patrol') || $wgUser->isAllowed('patrolmarks'));
 579+ }
 580+ }
 581+
573582 }

Status & tagging log