Index: trunk/extensions/InspectCache/InspectCache.php |
— | — | @@ -11,9 +11,9 @@ |
12 | 12 | } |
13 | 13 | |
14 | 14 | $wgExtensionCredits['specialpage'][] = array( |
15 | | - 'version' => '0.2', |
| 15 | + 'version' => '0.3', |
16 | 16 | 'name' => 'InspectCache', |
17 | | - 'author' => 'Tim Starling, Brion Vibber', |
| 17 | + 'author' => array( 'Tim Starling', 'Brion Vibber' ), |
18 | 18 | 'url' => 'http://www.mediawiki.org/wiki/Extension:InspectCache', |
19 | 19 | 'description' => 'A simple debugging tool to inspect the contents of the shared cache', |
20 | 20 | 'descriptionmsg' => 'inspectcache-desc', |
— | — | @@ -21,5 +21,6 @@ |
22 | 22 | |
23 | 23 | $dir = dirname(__FILE__) . '/'; |
24 | 24 | $wgExtensionMessagesFiles['InspectCache'] = $dir . 'InspectCache.i18n.php'; |
25 | | -require_once( $dir . '../ExtensionFunctions.php' ); |
26 | | -extAddSpecialPage( $dir . 'InspectCache_body.php', 'InspectCache', 'InspectCache' ); |
| 25 | +$wgExtensionAliasesFiles['InspectCache'] = $dir . 'InspectCache.alias.php'; |
| 26 | +$wgAutoloadClasses['SpecialInspectCache'] = $dir . 'InspectCache_body.php'; |
| 27 | +$wgSpecialPages['InspectCache'] = 'SpecialInspectCache'; |
Index: trunk/extensions/InspectCache/InspectCache.alias.php |
— | — | @@ -0,0 +1,11 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for special pages |
| 5 | + * |
| 6 | + */ |
| 7 | + |
| 8 | +$aliases = array(); |
| 9 | + |
| 10 | +$aliases['en'] = array( |
| 11 | + 'InspectCache' => array( 'InspectCache' ), |
| 12 | +); |
Property changes on: trunk/extensions/InspectCache/InspectCache.alias.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 13 | + native |
Added: svn:keywords |
2 | 14 | + Id |
Index: trunk/extensions/InspectCache/InspectCache_body.php |
— | — | @@ -5,15 +5,17 @@ |
6 | 6 | exit(1); |
7 | 7 | } |
8 | 8 | |
9 | | -class InspectCache extends SpecialPage |
| 9 | +class SpecialInspectCache extends SpecialPage |
10 | 10 | { |
11 | | - function InspectCache() { |
12 | | - wfLoadExtensionMessages( 'InspectCache' ); |
13 | | - SpecialPage::SpecialPage("InspectCache"); |
| 11 | + function __construct() { |
| 12 | + SpecialPage::SpecialPage( 'InspectCache' ); |
14 | 13 | } |
15 | 14 | |
16 | 15 | function execute( $par ) { |
17 | 16 | global $wgRequest, $wgOut, $wgTitle, $inspectcacheget, $inspectcachedelete; |
| 17 | + |
| 18 | + wfLoadExtensionMessages( 'InspectCache' ); |
| 19 | + |
18 | 20 | $inspectcacheget = wfMsgHtml('inspectcache-get'); |
19 | 21 | $inspectcachedelete = wfMsgHtml('inspectcache-delete'); |
20 | 22 | $inspectcachelist = wfMsgHtml('inspectcache-list'); |