Patching MediaWiki for fun and profit

Inspired by Peter Saint-Andre’s blog post, we decided to patch MediaWiki to make it recognize the spotify: URI scheme. (And we threw xmpp: in there as well, because we use it internally for instant messaging.)

First we added spotify: and xmpp: lines to the $wgUrlProtocols array in LocalSettings.php: