X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Finstaller%2FWebInstallerOptions.php;h=953295a242dc2ef5a028c7710252d5925a14fb35;hb=4077b57759756ecd0d25427ec9598feb28a28ac1;hp=7f0d27d3901737b3e8c9a59e2abca189f7b7fd73;hpb=e60b416eb9f4deab55806c851a1fb58e5648e132;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/WebInstallerOptions.php b/includes/installer/WebInstallerOptions.php index 7f0d27d390..953295a242 100644 --- a/includes/installer/WebInstallerOptions.php +++ b/includes/installer/WebInstallerOptions.php @@ -412,7 +412,7 @@ class WebInstallerOptions extends WebInstallerPage { return '

' . Html::element( 'img', [ 'src' => $this->getVar( 'wgRightsIcon' ) ] ) . - '\u{00A0}\u{00A0}' . + "\u{00A0}\u{00A0}" . htmlspecialchars( $this->getVar( 'wgRightsText' ) ) . "

\n" . "

" . @@ -490,11 +490,8 @@ class WebInstallerOptions extends WebInstallerPage { // config-license-cc-0, config-license-pd, config-license-gfdl, config-license-none, // config-license-cc-choose $entry = $this->parent->licenses[$code]; - if ( isset( $entry['text'] ) ) { - $this->setVar( 'wgRightsText', $entry['text'] ); - } else { - $this->setVar( 'wgRightsText', wfMessage( 'config-license-' . $code )->text() ); - } + $this->setVar( 'wgRightsText', + $entry['text'] ?? wfMessage( 'config-license-' . $code )->text() ); $this->setVar( 'wgRightsUrl', $entry['url'] ); $this->setVar( 'wgRightsIcon', $entry['icon'] ); } else {