r74415 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74414‎ | r74415 | r74416 >
Date:07:24, 7 October 2010
Author:raymond
Status:ok
Tags:
Comment:
Add defintion for the special page
Add special page alias file
Modified paths:
  • /trunk/extensions/TradeTrack/TradeTrack.alias.php (added) (history)
  • /trunk/extensions/TradeTrack/TradeTrack.php (modified) (history)

Diff [purge]

Index: trunk/extensions/TradeTrack/TradeTrack.alias.php
@@ -0,0 +1,19 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ */
 9+
 10+$specialPageAliases = array();
 11+
 12+/** English (English) */
 13+$specialPageAliases['en'] = array(
 14+ 'TradeTrack' => array( 'TradeTrack' ),
 15+);
 16+
 17+/**
 18+ * For backwards compatibility with MediaWiki 1.15 and earlier.
 19+ */
 20+$aliases =& $specialPageAliases;
\ No newline at end of file
Property changes on: trunk/extensions/TradeTrack/TradeTrack.alias.php
___________________________________________________________________
Added: svn:eol-style
121 + native
Index: trunk/extensions/TradeTrack/TradeTrack.php
@@ -14,16 +14,21 @@
1515 $wgTradeTrackEmailSubject = "A new Trademark Request has Arrived";
1616 $wgTradeTrackFromEmail = "tradetrack@wikimedia.org";
1717
18 -$wgAutoloadClasses['SpecialTradeTrack'] = dirname(__FILE__) . "/SpecialTradeTrack.php";
19 -$wgAutoloadClasses['TradeTrackScreen'] = dirname(__FILE__) . "/templates/TradeTrackScreen.php";
20 -$wgAutoloadClasses['TradeTrackScreenDetailsForm'] = dirname(__FILE__) . "/templates/TradeTrackScreenDetailsForm.php";
21 -$wgAutoloadClasses['TradeTrackScreenNonComAgreement'] = dirname(__FILE__) . "/templates/TradeTrackScreenNonComAgreement.php";
22 -$wgAutoloadClasses['TradeTrackScreenRouting'] = dirname(__FILE__) . "/templates/TradeTrackScreenRouting.php";
23 -$wgAutoloadClasses['TradeTrackScreenThanks'] = dirname(__FILE__) . "/templates/TradeTrackScreenThanks.php";
24 -$wgAutoloadClasses['TradeTrackEmail'] = dirname(__FILE__) . "/templates/TradeTrackEmail.php";
 18+$dir = dirname(__FILE__);
 19+$wgAutoloadClasses['SpecialTradeTrack'] = $dir . "/SpecialTradeTrack.php";
 20+$wgAutoloadClasses['TradeTrackScreen'] = $dir . "/templates/TradeTrackScreen.php";
 21+$wgAutoloadClasses['TradeTrackScreenDetailsForm'] = $dir . "/templates/TradeTrackScreenDetailsForm.php";
 22+$wgAutoloadClasses['TradeTrackScreenNonComAgreement'] = $dir . "/templates/TradeTrackScreenNonComAgreement.php";
 23+$wgAutoloadClasses['TradeTrackScreenRouting'] = $dir . "/templates/TradeTrackScreenRouting.php";
 24+$wgAutoloadClasses['TradeTrackScreenThanks'] = $dir . "/templates/TradeTrackScreenThanks.php";
 25+$wgAutoloadClasses['TradeTrackEmail'] = $dir . "/templates/TradeTrackEmail.php";
2526
26 -$wgExtensionMessagesFiles['TradeTrack'] = dirname( __FILE__ ) . "/TradeTrack.i18n.php";
 27+$wgSpecialPages['TradeTrack'] = 'SpecialTradeTrack';
 28+$wgSpecialPageGroups['TradeTrack'] = 'other';
2729
 30+$wgExtensionMessagesFiles['TradeTrack'] = $dir . "/TradeTrack.i18n.php";
 31+$wgExtensionAliasesFiles['TradeTrack'] = $dir . "/TradeTrack.alias.php";
 32+
2833 $wgTradeTrackEmailCommercial = "bharris@wikimedia.org"; // Who gets commercial requests (Kul)
2934 $wgTradeTrackEmailNonCommercial = "bharris@wikimedia.org"; // Who gets non-commercial requests (Mike)
3035 $wgTradeTrackEmailMedia = "bharris@wikimedia.org"; // Who gets media requests (Jay)

Status & tagging log