r73385 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73384‎ | r73385 | r73386 >
Date:16:17, 20 September 2010
Author:raymond
Status:ok
Tags:
Comment:
Follow-up r73368: Add special page alias file for the new and a long time existing special pages
Modified paths:
  • /trunk/extensions/ProofreadPage/ProofreadPage.alias.php (added) (history)
  • /trunk/extensions/ProofreadPage/ProofreadPage.php (modified) (history)
  • /trunk/extensions/Translate/groups/mediawiki-defines.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/ProofreadPage.alias.php
@@ -0,0 +1,20 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ */
 9+
 10+$specialPageAliases = array();
 11+
 12+/** English */
 13+$specialPageAliases['en'] = array(
 14+ 'IndexPages' => array( 'IndexPages' ),
 15+ 'PagesWithoutScans' => array( 'PagesWithoutScans' ),
 16+);
 17+
 18+/**
 19+ * For backwards compatibility with MediaWiki 1.15 and earlier.
 20+ */
 21+$aliases =& $specialPageAliases;
Property changes on: trunk/extensions/ProofreadPage/ProofreadPage.alias.php
___________________________________________________________________
Added: svn:eol-style
122 + native
Index: trunk/extensions/ProofreadPage/ProofreadPage.php
@@ -27,8 +27,13 @@
2828
2929
3030 $wgExtensionFunctions[] = 'wfProofreadPage';
31 -$wgExtensionMessagesFiles['ProofreadPage'] = dirname( __FILE__ ) . '/ProofreadPage.i18n.php';
32 -$wgAutoloadClasses['ProofreadPage'] = dirname( __FILE__ ) . "/ProofreadPage_body.php";
 31+
 32+$dir = dirname( __FILE__ ) . '/';
 33+$wgExtensionMessagesFiles['ProofreadPage'] = $dir . 'ProofreadPage.i18n.php';
 34+$wgExtensionAliasesFiles['ProofreadPage'] = $dir . 'ProofreadPage.alias.php';
 35+
 36+$wgAutoloadClasses['ProofreadPage'] = $dir . 'ProofreadPage_body.php';
 37+
3338 $wgExtensionCredits['other'][] = array(
3439 'path' => __FILE__,
3540 'name' => 'ProofreadPage',
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt
@@ -867,6 +867,7 @@
868868 descmsg = profiling-desc
869869
870870 Proofread Page
 871+aliasfile = ProofreadPage/ProofreadPage.alias.php
871872 descmsg = proofreadpage_desc
872873 ignored = proofreadpage_default_header, proofreadpage_default_footer, proofreadpage_quality_message
873874 ignored = proofreadpage_specialpage_text

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r73368renaming special page, follow-up to r73338thomasv09:34, 20 September 2010

Status & tagging log