Do checks in the correct order in Linker::getLinkColour().
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Tue, 24 Jul 2012 12:44:27 +0000 (14:44 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Wed, 25 Jul 2012 07:50:58 +0000 (09:50 +0200)
commitdf8c25e288cfbefc82ebf6988c7f2a88db9949da
treec3536c9a339c5807bdbae45b3565712f34cb2c0c
parent2cc3faa0f1c5552889ce53bad945edcf3f4a83c8
Do checks in the correct order in Linker::getLinkColour().

There's no point doing potentially expensive checks (exists() and
getLength()) if the page is simply not in a content namespace.

Change-Id: I86a2b3a36071cf508b8e99ef20bdf3e0e20f3c82
includes/Linker.php