r37402 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r37401‎ | r37402 | r37403 >
Date:16:27, 9 July 2008
Author:raymond
Status:old
Tags:
Comment:
* Add special page aliases file
* Add a few spaces to the input form
Modified paths:
  • /trunk/extensions/DeletedContributions/DeletedContributions.i18n.alias.php (added) (history)
  • /trunk/extensions/DeletedContributions/DeletedContributions.php (modified) (history)
  • /trunk/extensions/DeletedContributions/DeletedContributions_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DeletedContributions/DeletedContributions.php
@@ -1,8 +1,8 @@
22 <?php
33 /**
4 - @ Extension based on SpecialContributions for archived revisions
5 - @ Modifications made to SpecialContributions.php
6 - @ copyright © 2007 Aaron Schulz
 4+ * Extension based on SpecialContributions for archived revisions
 5+ * Modifications made to SpecialContributions.php
 6+ * @copyright © 2007 Aaron Schulz
77 */
88
99 $wgExtensionCredits['specialpage'][] = array(
@@ -16,10 +16,13 @@
1717 );
1818
1919 # Internationalisation
20 -$wgExtensionMessagesFiles['DeletedContributions'] = dirname(__FILE__) . '/DeletedContributions.i18n.php';
 20+$dir = dirname(__FILE__) . '/';
 21+$wgExtensionMessagesFiles['DeletedContributions'] = $dir . 'DeletedContributions.i18n.php';
 22+$wgExtensionAliasesFiles['DeletedContributions'] = $dir . 'DeletedContributions.i18n.alias.php';
 23+
2124 $wgAutoloadClasses['DeletedContributionsPage']
2225 = $wgAutoloadClasses['DeletedContributionsPage']
23 - = dirname(__FILE__) . '/DeletedContributions_body.php';
 26+ = $dir . 'DeletedContributions_body.php';
2427
2528 $wgHooks['ContributionsToolLinks'][] = 'wfLoadContribsLink';
2629 $wgSpecialPages['DeletedContributions'] = 'DeletedContributionsPage';
@@ -40,4 +43,3 @@
4144 }
4245 return true;
4346 }
44 -
Index: trunk/extensions/DeletedContributions/DeletedContributions.i18n.alias.php
@@ -0,0 +1,22 @@
 2+<?php
 3+/**
 4+ * Aliases for Special:DeletedContributions
 5+ *
 6+ * @addtogroup Extensions
 7+ */
 8+
 9+$aliases = array();
 10+
 11+/** English
 12+ * @author Aaron Schulz
 13+ */
 14+$aliases['en'] = array(
 15+ 'DeletedContributions' => array( 'DeletedContributions' ),
 16+);
 17+
 18+/** German
 19+ * @author Raimond Spekking
 20+ */
 21+$aliases['de'] = array(
 22+ 'DeletedContributions' => array( 'Gelöschte Beiträge' ),
 23+);
Property changes on: trunk/extensions/DeletedContributions/DeletedContributions.i18n.alias.php
___________________________________________________________________
Added: svn:eol-style
124 + native
Index: trunk/extensions/DeletedContributions/DeletedContributions_body.php
@@ -356,10 +356,10 @@
357357
358358 $f .= Xml::openElement( 'fieldset' ) .
359359 Xml::element( 'legend', array(), wfMsg( 'sp-contributions-search' ) ) .
360 - Xml::tags( 'label', array( 'for' => 'target' ), wfMsgExt( 'sp-contributions-username', 'parseinline' ) ) .
 360+ Xml::tags( 'label', array( 'for' => 'target' ), wfMsgExt( 'sp-contributions-username', 'parseinline' ) ) . ' ' .
361361 Xml::input( 'target', 20, $options['target']) . ' '.
362362 Xml::label( wfMsg( 'namespace' ), 'namespace' ) . ' ' .
363 - Xml::namespaceSelector( $options['namespace'], '' ) .
 363+ Xml::namespaceSelector( $options['namespace'], '' ) . ' ' .
364364 Xml::submitButton( wfMsg( 'sp-contributions-submit' ) ) .
365365 Xml::closeElement( 'fieldset' ) .
366366 Xml::closeElement( 'form' );

Status & tagging log