From: Derk-Jan Hartman Date: Sat, 28 May 2016 20:55:39 +0000 (+0200) Subject: SpecialUpload: Separate style only module X-Git-Tag: 1.31.0-rc.0~6770^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=2963a1a25eea7ebd3745dc8d43ed1a421cab7d1a;p=lhc%2Fweb%2Fwiklou.git SpecialUpload: Separate style only module Move the style into a style only module, because it is used independant of the javascript module. Add the new style module as a dependency for the javascript module. Bug: T136364 Change-Id: If34483fdc50dc130a4bcf3d163b34b954f2269bb --- diff --git a/includes/specials/SpecialUpload.php b/includes/specials/SpecialUpload.php index 09111f6fae..4b731cb994 100644 --- a/includes/specials/SpecialUpload.php +++ b/includes/specials/SpecialUpload.php @@ -368,7 +368,7 @@ class SpecialUpload extends SpecialPage { $sessionKey = $this->mUpload->stashSession(); // Add styles for the warning, reused from the live preview - $this->getOutput()->addModuleStyles( 'mediawiki.special.upload' ); + $this->getOutput()->addModuleStyles( 'mediawiki.special.upload.styles' ); $warningHtml = '

' . $this->msg( 'uploadwarning' )->escaped() . "

\n" . '