Merge "watcheditem: Fix bad $options param in NoWriteWatchedItemStore::countWatchersM...
[lhc/web/wiklou.git] / includes / skins / SkinApi.php
index 6966ff7..8ee2a75 100644 (file)
@@ -32,9 +32,12 @@ class SkinApi extends SkinTemplate {
        public $skinname = 'apioutput';
        public $template = SkinApiTemplate::class;
 
-       public function setupSkinUserCss( OutputPage $out ) {
-               parent::setupSkinUserCss( $out );
-               $out->addModuleStyles( 'mediawiki.skinning.interface' );
+       public function getDefaultModules() {
+               $modules = parent::getDefaultModules();
+               $modules['styles']['skin'][] = 'mediawiki.skinning.interface';
+               // There is no search box, disable 'mediawiki.searchSuggest'
+               $modules['search'] = [];
+               return $modules;
        }
 
        // Skip work and hooks for stuff we don't use