Simplify cached check in Special:SpecialPages
authorumherirrender <umherirrender_de.wp@web.de>
Fri, 9 Nov 2012 15:57:54 +0000 (16:57 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Fri, 9 Nov 2012 15:57:54 +0000 (16:57 +0100)
commitafd054065bfdb75f66132ecf36637a49fe710d3c
treefec25985b2a245c6683ff6f733dacf5cdcd9d21e
parenteaca7a01cfe6000ed0cc75241da1428853cdc05d
Simplify cached check in Special:SpecialPages

There is no need to repeat the condition from QueryPage::isCached and
check the misermode self.

Moved the method QueryPage::isCached to SpecialPage::isCached for easy
calling. Maybe in future some special pages would get cached and define
its own condition for that, so making false as default.

Simplify a count and add some spaces.

Change-Id: I71c9991e136f9c1a6a0123ae5305b39777d9135c
includes/SpecialPage.php
includes/specials/SpecialSpecialpages.php