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
Adding the following code will remove redlinks for unregistered users only. Registered users will see redlinks as before. [To be added after function efRemoveRedlinks(...)]

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