Index: trunk/extensions/LastUserLogin/LastUserLogin.php |
— | — | @@ -43,13 +43,16 @@ |
44 | 44 | |
45 | 45 | // New user right |
46 | 46 | $wgAvailableRights[] = 'lastlogin'; |
47 | | - |
| 47 | +$wgGroupPermissions['sysop']['lastlogin'] = true; |
| 48 | + |
48 | 49 | // Set up the new special page |
49 | 50 | $dir = dirname( __FILE__ ) . '/'; |
50 | 51 | $wgAutoloadClasses['LastUserLogin'] = $dir . 'LastUserLogin_body.php'; |
51 | 52 | $wgExtensionMessagesFiles['LastUserLogin'] = $dir . 'LastUserLogin.i18n.php'; |
| 53 | +$wgExtensionAliasesFiles['LastUserLogin'] = $dir . 'LastUserLogin.alias.php'; |
52 | 54 | $wgSpecialPages['LastUserLogin'] = 'LastUserLogin'; |
53 | | - |
| 55 | +$wgSpecialPageGroups['LastUserLogin'] = 'users'; |
| 56 | + |
54 | 57 | // Function that updates the database when a user logs in |
55 | 58 | $wgExtensionFunctions[] = 'wfUpdateUserTouched'; |
56 | 59 | |
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 |
1 | 17 | + native |