From dd34719f0dc74b5afbe05e44381aae832f924ff2 Mon Sep 17 00:00:00 2001 From: Daniel Kraus Date: Wed, 11 Jun 2014 16:55:25 +0200 Subject: [PATCH] Fix page black list. --- LinkTitles.body.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/LinkTitles.body.php b/LinkTitles.body.php index 8bee8ae..b9b0d56 100755 --- a/LinkTitles.body.php +++ b/LinkTitles.body.php @@ -146,8 +146,8 @@ // Build a blacklist of pages that are not supposed to be link // targets. This includes the current page. - $black_list = str_replace( '_', ' ', - '("' . implode( '", "',$wgLinkTitlesBlackList ) . + $blackList = str_replace( '_', ' ', + '("' . implode( '", "',$wgLinkTitlesBlackList ) . '", "' . LinkTitles::$currentTitle->getDbKey() . '")' ); // Build an SQL query and fetch all page titles ordered by length from @@ -162,7 +162,7 @@ array( 'page_namespace = 0', 'CHAR_LENGTH(page_title) >= ' . $wgLinkTitlesMinimumTitleLength, - 'page_title NOT IN ' . $black_list, + 'page_title NOT IN ' . $blackList, ), __METHOD__, array( 'ORDER BY' => 'CHAR_LENGTH(page_title) ' . $sort_order ) @@ -174,7 +174,7 @@ array( 'page_namespace = 0', 'LENGTH(page_title) >= ' . $wgLinkTitlesMinimumTitleLength, - 'page_title NOT IN ' . $black_list, + 'page_title NOT IN ' . $blackList, ), __METHOD__, array( 'ORDER BY' => 'LENGTH(page_title) ' . $sort_order )