r92757 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92756‎ | r92757 | r92758 >
Date:17:34, 21 July 2011
Author:werdna
Status:deferred
Tags:
Comment:
MoodBar: Make dependency on EditPageTracking optional
Modified paths:
  • /trunk/extensions/MoodBar/MoodBar.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MoodBar/MoodBar.hooks.php
@@ -38,9 +38,11 @@
3939 return false;
4040 }
4141
42 - return ((bool)EditPageTracking::getFirstEditPage($user));
 42+ if ( MWInit::classExists('EditPageTracking') ) {
 43+ return ((bool)EditPageTracking::getFirstEditPage($user));
 44+ }
4345
44 - return false;
 46+ return true;
4547 }
4648
4749 /**

Status & tagging log