aboutsummaryrefslogtreecommitdiffstats
path: root/includes/installer/WebInstallerOptions.php
diff options
context:
space:
mode:
authorFomafix <fomafix@googlemail.com>2016-12-27 22:14:16 +0100
committerKrinkle <krinklemail@gmail.com>2018-06-24 01:20:13 +0000
commit125cbd8c017b872c78f047c08f494a458883db23 (patch)
tree4e271c169d5558200f9577e2767403d2ffe9e360 /includes/installer/WebInstallerOptions.php
parent0dead475ab85cbd9c106c8fbaa38779b0c16aaea (diff)
downloadmediawikicore-125cbd8c017b872c78f047c08f494a458883db23.tar.gz
mediawikicore-125cbd8c017b872c78f047c08f494a458883db23.zip
Use \u{00A0} instead of &#160; or &nbsp;
Directly use the UTF-8 encoding of the 'NO-BREAK SPACE' (U+00A0) instead of the HTML/XML entities &#160; or &#xa0; or &nbsp;. With the UTF-8 character the generated HTML is shorter and better to read. Also change the special value for the label in HTMLForm from &#160; to U+00A0 but also support &#160; for backward compability. Bug: T154300 Change-Id: I882599ac1120789bb4e524c4394870680caca4f4
Diffstat (limited to 'includes/installer/WebInstallerOptions.php')
-rw-r--r--includes/installer/WebInstallerOptions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/installer/WebInstallerOptions.php b/includes/installer/WebInstallerOptions.php
index d798ea1e1ab8..7f0d27d39017 100644
--- a/includes/installer/WebInstallerOptions.php
+++ b/includes/installer/WebInstallerOptions.php
@@ -412,7 +412,7 @@ class WebInstallerOptions extends WebInstallerPage {
return '<p>' .
Html::element( 'img', [ 'src' => $this->getVar( 'wgRightsIcon' ) ] ) .
- '&#160;&#160;' .
+ '\u{00A0}\u{00A0}' .
htmlspecialchars( $this->getVar( 'wgRightsText' ) ) .
"</p>\n" .
"<p style=\"text-align: center;\">" .