Index: trunk/extensions/MoodBar/modules/ext.moodBar/ext.moodBar.init.js |
— | — | @@ -20,15 +20,8 @@ |
21 | 21 | var ui = mb.ui; |
22 | 22 | |
23 | 23 | mb.conf.bucketKey = mw.user.bucket( |
24 | | - 'moodbar-trigger', { |
25 | | - 'buckets': { |
26 | | - 'feedback': 80, |
27 | | - 'using': 10, |
28 | | - 'share': 10 |
29 | | - }, |
30 | | - 'version': 1, |
31 | | - 'expires': 30 |
32 | | - } |
| 24 | + 'moodbar-trigger', |
| 25 | + mw.config.get('mbConfig').bucketConfig |
33 | 26 | ); |
34 | 27 | |
35 | 28 | // Create portlet |
Index: trunk/extensions/MoodBar/MoodBar.hooks.php |
— | — | @@ -53,6 +53,17 @@ |
54 | 54 | $vars['mbConfig'] = array( |
55 | 55 | 'validTypes' => MBFeedbackItem::getValidTypes(), |
56 | 56 | 'userBuckets' => MoodBarHooks::getUserBuckets( $wgUser ), |
| 57 | + 'bucketConfig' => |
| 58 | + array( |
| 59 | + 'buckets' => |
| 60 | + array( |
| 61 | + 'feedback' => 80, |
| 62 | + 'using' => 10, |
| 63 | + 'share' => 10, |
| 64 | + ), |
| 65 | + 'version' => 1, |
| 66 | + 'expires' => 30, |
| 67 | + ), |
57 | 68 | ); |
58 | 69 | return true; |
59 | 70 | } |