r61641 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61640‎ | r61641 | r61642 >
Date:16:37, 28 January 2010
Author:raymond
Status:ok
Tags:
Comment:
Add alias file for i18n of the special page name
Add $wgSpecialPageGroups
Add $wgGroupPermissions
Modified paths:
  • /trunk/extensions/LastUserLogin/LastUserLogin.alias.php (added) (history)
  • /trunk/extensions/LastUserLogin/LastUserLogin.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LastUserLogin/LastUserLogin.php
@@ -43,13 +43,16 @@
4444
4545 // New user right
4646 $wgAvailableRights[] = 'lastlogin';
47 -
 47+$wgGroupPermissions['sysop']['lastlogin'] = true;
 48+
4849 // Set up the new special page
4950 $dir = dirname( __FILE__ ) . '/';
5051 $wgAutoloadClasses['LastUserLogin'] = $dir . 'LastUserLogin_body.php';
5152 $wgExtensionMessagesFiles['LastUserLogin'] = $dir . 'LastUserLogin.i18n.php';
 53+$wgExtensionAliasesFiles['LastUserLogin'] = $dir . 'LastUserLogin.alias.php';
5254 $wgSpecialPages['LastUserLogin'] = 'LastUserLogin';
53 -
 55+$wgSpecialPageGroups['LastUserLogin'] = 'users';
 56+
5457 // Function that updates the database when a user logs in
5558 $wgExtensionFunctions[] = 'wfUpdateUserTouched';
5659
Index: trunk/extensions/LastUserLogin/LastUserLogin.alias.php
@@ -0,0 +1,15 @@
 2+<?php
 3+/**
 4+ * Aliases for special pages
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ */
 9+
 10+$aliases = array();
 11+
 12+/** English */
 13+$aliases['en'] = array(
 14+ 'LastUserLogin' => array( 'LastUserLogin' ),
 15+);
 16+
Property changes on: trunk/extensions/LastUserLogin/LastUserLogin.alias.php
___________________________________________________________________
Name: svn:eol-style
117 + native

Status & tagging log