From: Ricordisamoa Date: Wed, 28 Jan 2015 21:04:31 +0000 (+0100) Subject: Output COPYING files as plain text in Special:Version/License/* X-Git-Tag: 1.31.0-rc.0~12577^2 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=a512ff8ab49b140e19306ff813caf2186a25f4b5;p=lhc%2Fweb%2Fwiklou.git Output COPYING files as plain text in Special:Version/License/* The vast majority of them consist of the GNU GPL, which is in plain text format and not supposed to be converted into wikitext. Change-Id: Iaa30b8994b8e4034ace61df8202a8b5002093ff2 --- diff --git a/includes/specials/SpecialVersion.php b/includes/specials/SpecialVersion.php index b1d93fb646..83fc636447 100644 --- a/includes/specials/SpecialVersion.php +++ b/includes/specials/SpecialVersion.php @@ -109,12 +109,7 @@ class SpecialVersion extends SpecialPage { $file = $this->getExtLicenseFileName( dirname( $extNode['path'] ) ); if ( $file ) { $wikiText = file_get_contents( $file ); - if ( !isset( $extNode['license-name'] ) ) { - // If the developer did not explicitly set license-name they probably - // are unaware that we're now sucking this file in and thus it's probably - // not wikitext friendly. - $wikiText = "
$wikiText
"; - } + $wikiText = "
$wikiText
"; } }