Index: trunk/extensions/MoodBar/MoodBar.php |
— | — | @@ -44,6 +44,8 @@ |
45 | 45 | 'remoteExtPath' => 'MoodBar/modules' |
46 | 46 | ); |
47 | 47 | |
| 48 | +$oldVersion = version_compare( $wgVersion, '1.17', '<=' ); |
| 49 | + |
48 | 50 | $wgResourceModules['ext.moodBar.init'] = $mbResourceTemplate + array( |
49 | 51 | 'styles' => 'ext.moodBar/ext.moodBar.init.css', |
50 | 52 | 'scripts' => 'ext.moodBar/ext.moodBar.init.js', |
— | — | @@ -56,7 +58,7 @@ |
57 | 59 | 'tooltip-p-moodbar-trigger-feedback', |
58 | 60 | ), |
59 | 61 | 'position' => 'top', |
60 | | - 'dependencies' => array( |
| 62 | + 'dependencies' => $oldVersion ? array() : array( |
61 | 63 | 'mediawiki.user', |
62 | 64 | ), |
63 | 65 | ); |