From: Ricordisamoa Date: Thu, 27 Aug 2015 14:19:20 +0000 (+0200) Subject: Add space between classes in HTMLButtonField X-Git-Tag: 1.31.0-rc.0~10243 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=c652ac99848e303310282ce019062f7ed4b177bc;p=lhc%2Fweb%2Fwiklou.git Add space between classes in HTMLButtonField Classes such as 'wb-input-buttonmw-ui-button' were being generated when $wgUseMediaWikiUIEverywhere = true, see: https://integration.wikimedia.org/ci/job/mwext-Wikibase-repo-tests-mysql-hhvm/4217/console Change-Id: If40b712ffb8e31d27380bf481333eecb7b95f9de --- diff --git a/includes/htmlform/HTMLButtonField.php b/includes/htmlform/HTMLButtonField.php index b0b08a645f..56a23ad20b 100644 --- a/includes/htmlform/HTMLButtonField.php +++ b/includes/htmlform/HTMLButtonField.php @@ -28,7 +28,7 @@ class HTMLButtonField extends HTMLFormField { ) { $prefix = 'mw-ui-'; // add mw-ui-button separately, so the descriptor doesn't need to set it - $flags .= $prefix.'button'; + $flags .= ' ' . $prefix.'button'; } foreach ( $this->mFlags as $flag ) { $flags .= ' ' . $prefix . $flag;