SpecialPage: DRY array filter for prefixSearchSubpages()
authorTimo Tijhof <krinklemail@gmail.com>
Mon, 23 Jun 2014 23:47:01 +0000 (01:47 +0200)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 24 Jun 2014 00:18:37 +0000 (02:18 +0200)
commit7ae68dcfb9f7a4e8359c1eeba1bed4e81ff1143e
tree2b849f8ac602f8de0ab815d9f48f7c135afc38b8
parentd65e736864d17ecc84385a26295e5859de2f9fee
SpecialPage: DRY array filter for prefixSearchSubpages()

Everytime this gets duplicated it isn't immediately obvious what
all the nested array_slice/preg_quote stuff does. Having it once
place removes the need to figure it out again or look at it as
new code (and ensures they're in sync and saves maintenance).

Change-Id: Iefe340729a55c9bb52a4931310966d0f33041205
includes/specialpage/SpecialPage.php
includes/specials/SpecialEditWatchlist.php
includes/specials/SpecialLog.php
includes/specials/SpecialWatchlist.php