Index: trunk/extensions/MoodBar/MoodBar.hooks.php |
— | — | @@ -61,6 +61,10 @@ |
62 | 62 | $vars['mbConfig'] = array( |
63 | 63 | 'validTypes' => MBFeedbackItem::getValidTypes(), |
64 | 64 | '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 | + |
65 | 69 | ) + $wgMoodBarConfig; |
66 | 70 | return true; |
67 | 71 | } |