From a512ff8ab49b140e19306ff813caf2186a25f4b5 Mon Sep 17 00:00:00 2001 From: Ricordisamoa Date: Wed, 28 Jan 2015 22:04:31 +0100 Subject: [PATCH] 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 --- includes/specials/SpecialVersion.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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
"; } } -- 2.20.1