r106748 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106747‎ | r106748 | r106749 >
Date:01:47, 20 December 2011
Author:rmoen
Status:resolved
Tags:
Comment:
added moodbar config flags for email prefs
Modified paths:
  • /trunk/extensions/MoodBar/MoodBar.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MoodBar/MoodBar.hooks.php
@@ -61,6 +61,10 @@
6262 $vars['mbConfig'] = array(
6363 'validTypes' => MBFeedbackItem::getValidTypes(),
6464 'userBuckets' => MoodBarHooks::getUserBuckets( $wgUser ),
 65+ 'canReceiveEmail' => $wgUser->canReceiveEmail() ,
 66+ 'userEmail' => strlen($wgUser->getEmail()) > 0 ? true : false,
 67+ 'isEmailConfirmationPending' => $wgUser->isEmailConfirmationPending() //returns false if email authentication off, and if email is confimed already
 68+
6569 ) + $wgMoodBarConfig;
6670 return true;
6771 }

Status & tagging log