[Mediawiki-l] Cannot Disable "RecentChanges" Special Page

Tech Geek techgeek12345 at gmail.com
Mon Nov 22 02:21:00 UTC 2010


Hi,

I want to disable the "RecentChanges" special page on my Mediawiki 1.16
version even for user that are logged in. I have tried two different
methods:

1. Using Lockdown extension I added the following in my LocalSettings.php
require_once( "$IP/extensions/Lockdown/Lockdown.php" );
$wgSpecialPageLockdown['RecentChanges'] = array('sysop');
$wgSpecialPageLockdown['Export'] = array('sysop');
With the above I was able to disable the "Export" special page but not the
RecentChanges special page.

2. As per [1] I did the following in my LocalSettings.php:
function disableSomeSpecialPages(&$list) {
 unset($list['RecentChanges']);
 unset($list['Export']);
 return true;
}
$wgHooks['SpecialPage_initList'][]='disableSomeSpecialPages';

but even that does not help. Any ideas?

Thanks!

[1]
http://www.mediawiki.org/wiki/Manual:Special_pages#Disabling_Special:UserLogin_and_Special:UserLogout_pages


More information about the MediaWiki-l mailing list