r86718 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86717‎ | r86718 | r86719 >
Date:17:58, 22 April 2011
Author:tparscal
Status:ok
Tags:
Comment:
Added basic special page for dashboard.
Modified paths:
  • /trunk/extensions/ArticleFeedback/ArticleFeedback.alias.php (added) (history)
  • /trunk/extensions/ArticleFeedback/ArticleFeedback.php (modified) (history)
  • /trunk/extensions/ArticleFeedback/SpecialArticleFeedback.php (added) (history)

Diff [purge]

Index: trunk/extensions/ArticleFeedback/SpecialArticleFeedback.php
@@ -0,0 +1,23 @@
 2+<?php
 3+/**
 4+ * SpecialPage for ArticleFeedback extension
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ */
 9+
 10+class SpecialArticleFeedback extends SpecialPage {
 11+
 12+ /* Methods */
 13+
 14+ public function __construct() {
 15+ parent::__construct( 'ArticleFeedback' );
 16+ }
 17+
 18+ public function execute( $par ) {
 19+ global $wgUser, $wgOut, $wgRequest;
 20+
 21+ $this->setHeaders();
 22+ $wgOut->addHtml( '<div class="articleFeedback-dashboard"><h2>Hello dashboard!</h2></div>' );
 23+ }
 24+}
Property changes on: trunk/extensions/ArticleFeedback/SpecialArticleFeedback.php
___________________________________________________________________
Added: svn:eol-style
125 + native
Index: trunk/extensions/ArticleFeedback/ArticleFeedback.alias.php
@@ -0,0 +1,16 @@
 2+<?php
 3+/**
 4+ * Aliases for Special:ArticleFeedback
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ */
 9+
 10+$specialPageAliases = array();
 11+
 12+/** English
 13+ * @author Trevor Parscal
 14+ */
 15+$specialPageAliases['en'] = array(
 16+ 'ArticleFeedback' => array( 'ArticleFeedback' ),
 17+);
Property changes on: trunk/extensions/ArticleFeedback/ArticleFeedback.alias.php
___________________________________________________________________
Added: svn:eol-style
118 + native
Index: trunk/extensions/ArticleFeedback/ArticleFeedback.php
@@ -120,7 +120,9 @@
121121 $wgAutoloadClasses['ApiQueryArticleFeedback'] = $dir . 'api/ApiQueryArticleFeedback.php';
122122 $wgAutoloadClasses['ApiArticleFeedback'] = $dir . 'api/ApiArticleFeedback.php';
123123 $wgAutoloadClasses['ArticleFeedbackHooks'] = $dir . 'ArticleFeedback.hooks.php';
 124+$wgAutoloadClasses['SpecialArticleFeedback'] = $dir . 'SpecialArticleFeedback.php';
124125 $wgExtensionMessagesFiles['ArticleFeedback'] = $dir . 'ArticleFeedback.i18n.php';
 126+$wgExtensionAliasesFiles['ArticleFeedback'] = $dir . 'ArticleFeedback.alias.php';
125127 // Hooks
126128 $wgHooks['LoadExtensionSchemaUpdates'][] = 'ArticleFeedbackHooks::loadExtensionSchemaUpdates';
127129 $wgHooks['ParserTestTables'][] = 'ArticleFeedbackHooks::parserTestTables';
@@ -130,3 +132,6 @@
131133 // API Registration
132134 $wgAPIListModules['articlefeedback'] = 'ApiQueryArticleFeedback';
133135 $wgAPIModules['articlefeedback'] = 'ApiArticleFeedback';
 136+// Special Page
 137+$wgSpecialPages['ArticleFeedback'] = 'SpecialArticleFeedback';
 138+$wgSpecialPageGroups['ArticleFeedback'] = 'other';

Follow-up revisions

RevisionCommit summaryAuthorDate
r86761Followup r86718: Register ArticleFeedback.alias for Translateraymond12:28, 23 April 2011

Status & tagging log