Extension talk:Purge/Archive 1
This page is an archive. Do not edit the contents of this page. Please direct any additional comments to the current talk page. |
MediaWiki-1.16.0 vector skin can't find the purge button
Hi, I just install MediaWiki-1.16.0, and use the new vector skin, but can't find the purge button. When I turn back to monobook skin, the purge button is OK. How can I use this extension with vector skin in MediaWiki-1.16.0? Thanks. --Jamesqi 01:46, 3 November 2010 (UTC)
- Try the following patch and set MediaWiki:Purge to "Purge" (capitalized). Works with 1.17 branch.
diff Purge.php Vector-compatible-Purge.php
26c26,27
< $wgHooks['SkinTemplateContentActions'][] = 'PurgeAction::contentHook';
---
> # $wgHooks['SkinTemplateContentActions'][] = 'PurgeAction::contentHook';
> $wgHooks['SkinTemplateNavigation::Universal'][] = 'PurgeAction::contentHook';
30c31
< public static function contentHook( array &$content_actions ) {
---
> public static function contentHook( &$sktemplate, &$content_actions ) {
38c39
< $content_actions['purge'] = array(
---
> $content_actions['actions']['purge'] = array(
44d44
<
53c53
--Jlerner 15:33, 28 January 2011 (UTC)
This didn't work, in Mediawiki 1.16.1 I have the purge extention showing as installed ok, I applied the above changes and edited the page at Mediawiki:Purge and changed that word from purge to Purge, No Purge button shows in the vector skin.
Any help, thanks,
--Blakilox 05:06, 14 February 2011 (UTC)
Got this working on 1.16.1 by applying the above patch, but changing "SkinTemplateNavigation::Universal" to "SkinTemplateNavigation".
--Tenebrous 15:37, 27 April 2011 (UTC)