Special:Version: Use addModuleStyles to load mediawiki.special.version
authorGlaisher <glaisher.wiki@gmail.com>
Sat, 6 Feb 2016 12:33:43 +0000 (17:33 +0500)
committerGlaisher <glaisher.wiki@gmail.com>
Sat, 6 Feb 2016 12:33:43 +0000 (17:33 +0500)
Currently, there is a brief delay before the stylesheet is loaded so
use addModuleStyles as this is a stylesheet only module.

Change-Id: I6adfeae88dddeab427928ef800152a4e1353cbe5

includes/specials/SpecialVersion.php

index a628902..17442be 100644 (file)
@@ -126,7 +126,7 @@ class SpecialVersion extends SpecialPage {
                                break;
 
                        default:
                                break;
 
                        default:
-                               $out->addModules( 'mediawiki.special.version' );
+                               $out->addModuleStyles( 'mediawiki.special.version' );
                                $out->addWikiText(
                                        $this->getMediaWikiCredits() .
                                        $this->softwareInformation() .
                                $out->addWikiText(
                                        $this->getMediaWikiCredits() .
                                        $this->softwareInformation() .