Index: trunk/extensions/Purge/Purge.i18n.php |
— | — | @@ -12,8 +12,8 @@ |
13 | 13 | * @author Ævar Arnfjörð Bjarmason |
14 | 14 | */ |
15 | 15 | $messages['en'] = array( |
16 | | - 'purge' => 'purge', |
17 | | - 'purge-desc' => 'Adds a purge tab on all normal pages, and bypasses the purge check for anonymous users allowing for quick purging of the cache', |
| 16 | + 'purge' => 'Purge', |
| 17 | + 'purge-desc' => 'Adds a purge tab on all normal pages allowing for quick purging of the cache', |
18 | 18 | ); |
19 | 19 | |
20 | 20 | /** Message documentation (Message documentation) |
Index: trunk/extensions/Purge/Purge.php |
— | — | @@ -23,7 +23,9 @@ |
24 | 24 | public static function contentHook( $skin, array &$content_actions ) { |
25 | 25 | global $wgRequest, $wgUser; |
26 | 26 | |
27 | | - $title = $skin->getTitle(); |
| 27 | + // Use getRelevantTitle if present so that this will work on some special pages |
| 28 | + $title = method_exists( $skin, 'getRelevantTitle' ) ? |
| 29 | + $skin->getRelevantTitle() : $skin->getTitle(); |
28 | 30 | if ( $title->getNamespace() !== NS_SPECIAL && $wgUser->isAllowed( 'purge' ) ) { |
29 | 31 | $action = $wgRequest->getText( 'action' ); |
30 | 32 | |