r80299 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80298‎ | r80299 | r80300 >
Date:19:19, 14 January 2011
Author:catrope
Status:ok
Tags:license-work 
Comment:
license-work: Add skeleton for Special:LicenseManager
Modified paths:
  • /branches/license-work/phase3/includes/AutoLoader.php (modified) (history)
  • /branches/license-work/phase3/includes/DefaultSettings.php (modified) (history)
  • /branches/license-work/phase3/includes/SpecialPage.php (modified) (history)
  • /branches/license-work/phase3/includes/specials/SpecialLicenseManager.php (added) (history)
  • /branches/license-work/phase3/languages/messages/MessagesEn.php (modified) (history)
  • /branches/license-work/phase3/languages/messages/MessagesQqq.php (modified) (history)

Diff [purge]

Index: branches/license-work/phase3/includes/AutoLoader.php
@@ -637,6 +637,7 @@
638638 'SpecialExport' => 'includes/specials/SpecialExport.php',
639639 'SpecialFilepath' => 'includes/specials/SpecialFilepath.php',
640640 'SpecialImport' => 'includes/specials/SpecialImport.php',
 641+ 'SpecialLicenseManager' => 'includes/specials/SpecialLicenseManager.php',
641642 'SpecialListGroupRights' => 'includes/specials/SpecialListgrouprights.php',
642643 'SpecialLockdb' => 'includes/specials/SpecialLockdb.php',
643644 'SpecialLog' => 'includes/specials/SpecialLog.php',
Index: branches/license-work/phase3/includes/DefaultSettings.php
@@ -4841,6 +4841,7 @@
48424842 'MIMEsearch' => 'media',
48434843 'FileDuplicateSearch' => 'media',
48444844 'Filepath' => 'media',
 4845+ 'LicenseManager' => 'media',
48454846
48464847 'Listusers' => 'users',
48474848 'Activeusers' => 'users',
Index: branches/license-work/phase3/includes/specials/SpecialLicenseManager.php
@@ -0,0 +1,43 @@
 2+<?php
 3+/**
 4+ * Implements Special:LicenseManager
 5+ *
 6+ * Copyright © 2011 Roan Kattouw
 7+ *
 8+ * This program is free software; you can redistribute it and/or modify
 9+ * it under the terms of the GNU General Public License as published by
 10+ * the Free Software Foundation; either version 2 of the License, or
 11+ * (at your option) any later version.
 12+ *
 13+ * This program is distributed in the hope that it will be useful,
 14+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
 15+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 16+ * GNU General Public License for more details.
 17+ *
 18+ * You should have received a copy of the GNU General Public License along
 19+ * with this program; if not, write to the Free Software Foundation, Inc.,
 20+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 21+ * http://www.gnu.org/copyleft/gpl.html
 22+ *
 23+ * @file
 24+ * @ingroup SpecialPage
 25+ */
 26+
 27+/**
 28+ * This class is used to list and edit licenses
 29+ *
 30+ * @ingroup SpecialPage
 31+ */
 32+class SpecialLicenseManager extends SpecialPage {
 33+
 34+ function __construct() {
 35+ parent::__construct( 'LicenseManager' );
 36+ }
 37+
 38+ function execute( $par ) {
 39+ global $wgRequest, $wgOut;
 40+
 41+ $this->setHeaders();
 42+ // TODO
 43+ }
 44+}
Property changes on: branches/license-work/phase3/includes/specials/SpecialLicenseManager.php
___________________________________________________________________
Added: svn:eol-style
145 + native
Index: branches/license-work/phase3/includes/SpecialPage.php
@@ -151,6 +151,7 @@
152152 'FileDuplicateSearch' => 'FileDuplicateSearchPage',
153153 'Upload' => 'SpecialUpload',
154154 'UploadStash' => 'SpecialUploadStash',
 155+ 'LicenseManager' => 'SpecialLicenseManager',
155156
156157 # Wiki data and tools
157158 'Statistics' => 'SpecialStatistics',
Index: branches/license-work/phase3/languages/messages/MessagesQqq.php
@@ -2063,6 +2063,9 @@
20642064
20652065 'fewestrevisions' => 'Name of a special page displayed in [[Special:SpecialPages]].',
20662066
 2067+# License manager
 2068+'licensemanager' => 'Name of a special page displayed in [[Special:SpecialPages]].',
 2069+
20672070 # Miscellaneous special pages
20682071 'nbytes' => 'Message used on the history page of a wiki page. Each version of a page consist of a number of bytes. $1 is the number of bytes that the page uses. Uses plural as configured for a language based on $1.',
20692072 'ncategories' => "Used in the special page '[[Special:MostCategories]]' in brackets after each entry on the list signifying how many categories a page is part of. $1 is the number of categories.",
Index: branches/license-work/phase3/languages/messages/MessagesEn.php
@@ -464,6 +464,7 @@
465465 'ComparePages' => array( 'ComparePages' ),
466466 'Badtitle' => array( 'Badtitle' ),
467467 'DisableAccount' => array( 'DisableAccount' ),
 468+ 'LicenseManager' => array( 'LicenseManager' ),
468469 );
469470
470471 /**
@@ -2450,6 +2451,9 @@
24512452 'fewestrevisions' => 'Pages with the fewest revisions',
24522453 'fewestrevisions-summary' => '', # do not translate or duplicate this message to other languages
24532454
 2455+# LicenseManager
 2456+'licensemanager' => 'License manager',
 2457+
24542458 # Miscellaneous special pages
24552459 'nbytes' => '$1 {{PLURAL:$1|byte|bytes}}',
24562460 'ncategories' => '$1 {{PLURAL:$1|category|categories}}',

Follow-up revisions

RevisionCommit summaryAuthorDate
r80338Followup r80299: forgot messages.inccatrope22:29, 14 January 2011

Status & tagging log