Index: trunk/extensions/Vector/Vector.hooks.php |
— | — | @@ -141,10 +141,12 @@ |
142 | 142 | * @param $skin Skin current skin |
143 | 143 | */ |
144 | 144 | public static function beforePageDisplay( $out, $skin ) { |
145 | | - // Add modules for enabled features |
146 | | - foreach ( self::$features as $name => $feature ) { |
147 | | - if ( isset( $feature['modules'] ) && self::isEnabled( $name ) ) { |
148 | | - $out->addModules( $feature['modules'] ); |
| 145 | + if ( $skin instanceof VectorSkin ) { |
| 146 | + // Add modules for enabled features |
| 147 | + foreach ( self::$features as $name => $feature ) { |
| 148 | + if ( isset( $feature['modules'] ) && self::isEnabled( $name ) ) { |
| 149 | + $out->addModules( $feature['modules'] ); |
| 150 | + } |
149 | 151 | } |
150 | 152 | } |
151 | 153 | return true; |