Extension:SS3Dummy

From Organic Design wiki

<?php /**Template:Php

Info.svg These are the MediaWiki extensions we're using and/or developing. Please refer to the information on the mediawiki.org wiki for installation and usage details. Extensions here which have no corresponding mediawiki article are either not ready for use or have been superseded. You can also browse our extension code in our local Subversion repository or our GitHub mirror.
* SS3Dummy extension creates a dummy #security parser-function
* This ensures that all old SimpleSecurity3.x protected pages are categorised into Category:Private
* Category:Private is then locked down by SimpleSecurity4
  • /

if ( !defined( 'MEDIAWIKI' ) ) die( 'Not an entry point.' );

$wgExtensionFunctions[] = 'efSetupSS3Dummy'; function efSetupSS3Dummy() { global $wgParser; $wgParser->setFunctionHook( 'security', 'efSS3Dummy' ); }

$wgHooks['LanguageGetMagic'][] = 'efSS3DummyLanguageGetMagic'; function efSS3DummyLanguageGetMagic( &$magicWords, $langCode = 0 ) { $magicWords['security'] = array( $langCode, 'security' ); return true; }

function efSS3Dummy( &$parser ) { return ""; }