Extension:RemoveRedlinks

Quick and dirty extension I whipped up to remove redlinks from page output. Note, this runs on _all_ links run through Linker::link, not only page content. Thus, redlinks in messages, special pages, etc will all be rendered as plaintext too.

How to execute the extension
1. Upload the file included in the .tar.gz archive to your server

2. Add the following to your localsettings.php file require_once( "$IP/extensions/RemoveRedlinks/RemoveRedlinks.php" );

Remove redlinks for unregistered users only
After downloading the php code for the extension, you can make a further modification to remove redlinks only for unregistered users. to do this edit the function in the php file and added following code to the function efRemoveRedlinks:

global $wgUser; # always show for logged in users if ( $wgUser->isLoggedIn) { return true; }