Index: trunk/extensions/MoodBar/MoodBar.hooks.php |
— | — | @@ -109,7 +109,6 @@ |
110 | 110 | |
111 | 111 | public static function makeGlobalVariablesScript( &$vars ) { |
112 | 112 | global $wgUser, $wgEnableEmail; |
113 | | - $vars['mbEditToken'] = $wgUser->editToken(); |
114 | 113 | $vars['mbEmailEnabled'] = $wgEnableEmail; |
115 | 114 | $vars['mbUserEmail'] = strlen( $wgUser->getEmail() ) > 0 ? true : false; |
116 | 115 | $vars['mbIsEmailConfirmationPending'] = $wgUser->isEmailConfirmationPending(); //returns false if email authentication off, and if email is confimed already |
Index: trunk/extensions/MoodBar/modules/jquery.moodBar/jquery.moodBar.js |
— | — | @@ -32,7 +32,7 @@ |
33 | 33 | 'system': clientData.platform, |
34 | 34 | 'bucket': fb.bucket, |
35 | 35 | 'type': fb.type, |
36 | | - 'token': mw.config.get('mbEditToken'), |
| 36 | + 'token': mw.user.tokens.get('editToken'), |
37 | 37 | 'format': 'json' |
38 | 38 | }; |
39 | 39 | |
— | — | @@ -58,7 +58,7 @@ |
59 | 59 | 'action': 'moodbarsetuseremail', |
60 | 60 | 'mbaction': 'setemail', |
61 | 61 | 'email': mbProps.email, |
62 | | - 'token': mw.config.get('mbEditToken'), |
| 62 | + 'token': mw.user.tokens.get('editToken'), |
63 | 63 | 'format':'json' |
64 | 64 | }; |
65 | 65 | return $.ajax( { |
— | — | @@ -74,7 +74,7 @@ |
75 | 75 | var apiRequest = { |
76 | 76 | 'action': 'moodbarsetuseremail', |
77 | 77 | 'mbaction': 'resendverification', |
78 | | - 'token': mw.config.get('mbEditToken'), |
| 78 | + 'token': mw.user.tokens.get('editToken'), |
79 | 79 | 'format':'json' |
80 | 80 | }; |
81 | 81 | return $.ajax( { |