Index: trunk/extensions/Translate/groups/Wikia/WikiaExtensions.php |
— | — | @@ -65,10 +65,21 @@ |
66 | 66 | protected function init() { |
67 | 67 | if ( $this->classes === null ) { |
68 | 68 | $this->classes = array(); |
| 69 | + |
69 | 70 | $classes = MessageGroups::singleton()->getGroups(); |
| 71 | + |
| 72 | + // Add regular MediaWiki extensions |
70 | 73 | foreach ( $this->wikiaextensions as $key ) { |
71 | 74 | $this->classes[$key] = $classes[$key]; |
72 | 75 | } |
| 76 | + |
| 77 | + // Add extensions that have a wikia- prefix |
| 78 | + foreach ( $classes as $index => $class ) { |
| 79 | + if ( ( strpos( $index, 'wikia-' ) === 0 ) && !$class->isMeta() && $class->exists() ) { |
| 80 | + $this->classes[$index] = $classes[$index]; |
| 81 | + $this->wikiaextensions[] = $index; |
| 82 | + } |
| 83 | + } |
73 | 84 | } |
74 | 85 | } |
75 | 86 | |