From: umherirrender Date: Wed, 27 Apr 2016 19:48:08 +0000 (+0200) Subject: Style warnings from live preview on Special:Upload X-Git-Tag: 1.31.0-rc.0~7136^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=30939317e7c20ad6636fab571e9d7a9df4789723 Style warnings from live preview on Special:Upload The live preview about warnings on Special:Upload does not style warnings added to the form. Added styles to the container to style the warnings. Also reuse the style to give the warning box on the non-js from the same style. The visual effect here is an expand box to the full width. Change-Id: I36e0bf0332eac476002569f46ab116f271f3c468 --- diff --git a/includes/specials/SpecialUpload.php b/includes/specials/SpecialUpload.php index 75308aa14d..09111f6fae 100644 --- a/includes/specials/SpecialUpload.php +++ b/includes/specials/SpecialUpload.php @@ -367,8 +367,11 @@ class SpecialUpload extends SpecialPage { $sessionKey = $this->mUpload->stashSession(); + // Add styles for the warning, reused from the live preview + $this->getOutput()->addModuleStyles( 'mediawiki.special.upload' ); + $warningHtml = '

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

\n" - . '