Output COPYING files as plain text in Special:Version/License/*
authorRicordisamoa <ricordisamoa@openmailbox.org>
Wed, 28 Jan 2015 21:04:31 +0000 (22:04 +0100)
committerRicordisamoa <ricordisamoa@openmailbox.org>
Wed, 28 Jan 2015 21:10:03 +0000 (22:10 +0100)
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

index b1d93fb..83fc636 100644 (file)
@@ -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 = "<pre>$wikiText</pre>";
-                                               }
+                                               $wikiText = "<pre>$wikiText</pre>";
                                        }
                                }