In light of religious terrorist attacks in Paris, please see Category:blasphemy!

Freedom Porn:free technology/SysopDisableSiteCounters

From Freedom Porn
Jump to: navigation, search

This is an extension originally written by Jean-Lou Dupont and is used on Freedom Porn. It is available at mediawiki:Extension:SysopDisableSiteCounters.

Licence

PHP License

Note: The licence chosen makes very little sense, but that was the choice of the original creator.

Copyright (c) 1999 - 2012 The PHP Group. All rights reserved.

This product includes PHP software, freely available from <http://www.php.net/software/>

Note: These were requirements of the licence, but of course, it is not copyrighted by The PHP Group, and no PHP source is included in this software. *facepalm*

Additional work

Unfortunately the original extension doesn't only disable the counters, in the new versions of MediaWiki it also disables the Special:PopularPages itself for sysops, which is an unintended consequence. MediaWiki code currently requires one to edit the source to reenable it.

Instructions

                      if ( !$wgDisableCounters ) {                                self::$mList['Popularpages'] = 'PopularpagesPage';
                      }
    • Comment out (or delete) if statement and the closing brace. The only thing you should be left with is:
                                self::$mList['Popularpages'] = 'PopularpagesPage';

Related bugs