From 42a8daaf5a25aa56b87612d4a11c916062d7f47d Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 18 Nov 2012 15:34:00 +0100 Subject: [PATCH] (bug 26280) all files should have GPL header MediaWiki is licensed under GPL so we should really add the header to our PHP code unless reusing code licensed differently. Tested using: ack-grep --php -L 'This program is free software' \ includes/ maintenance/ mw-config/ resources/ skins/ Output the following files: includes/ExternalEdit.php (public domain) Various other licenses: includes/json/Services_JSON.php includes/libs/CSSMin.php includes/libs/IEContentAnalyzer.php includes/libs/JavaScriptMinifier.php includes/libs/jsminplus.php includes/normal/Utf8Case.php includes/objectcache/MemcachedClient.php File autogenerated from a GPL file and Unicode data: includes/ZhConversion.php A few lines coming from stack overflow: maintenance/mwdoc-filter.php Message files do not have any license :-/ Change-Id: I214a988edfa9e2dfcc762612a0f7d47eee8bcb74 --- includes/content/CssContentHandler.php | 20 +++++++++++++++++- includes/content/JavaScriptContentHandler.php | 20 +++++++++++++++++- includes/content/TextContentHandler.php | 18 ++++++++++++++++ includes/content/WikitextContentHandler.php | 20 +++++++++++++++++- includes/diff/DairikiDiff.php | 15 +++++++++++++ includes/site/MediaWikiSite.php | 21 ++++++++++++++++++- languages/utils/CLDRPluralRuleEvaluator.php | 20 +++++++++++++++++- skins/Standard.php | 16 ++++++++++++++ 8 files changed, 145 insertions(+), 5 deletions(-) diff --git a/includes/content/CssContentHandler.php b/includes/content/CssContentHandler.php index e2199c41b2..2c68d2f813 100644 --- a/includes/content/CssContentHandler.php +++ b/includes/content/CssContentHandler.php @@ -1,4 +1,22 @@ * You may copy this code freely under the conditions of the GPL. * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * http://www.gnu.org/copyleft/gpl.html + * * @file * @ingroup DifferenceEngine * @defgroup DifferenceEngine DifferenceEngine diff --git a/includes/site/MediaWikiSite.php b/includes/site/MediaWikiSite.php index 0d5db11dc0..c831f81552 100644 --- a/includes/site/MediaWikiSite.php +++ b/includes/site/MediaWikiSite.php @@ -1,11 +1,30 @@