From df4f9ebfb9a03c02ceffc3c56ba4a09963dd528f Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 15 Aug 2008 18:28:54 +0000 Subject: [PATCH] double-check with isLocal() to be safe --- includes/specials/SpecialAllpages.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialAllpages.php b/includes/specials/SpecialAllpages.php index da35b7c9e5..d190eb6df7 100644 --- a/includes/specials/SpecialAllpages.php +++ b/includes/specials/SpecialAllpages.php @@ -114,8 +114,8 @@ function showToplevel( $namespace = NS_MAIN, $from = '', $to = '', $including = $from = Title::makeTitleSafe( $namespace, $from ); $to = Title::makeTitleSafe( $namespace, $to ); - $from = $from ? $from->getDBKey() : null; - $to = $to ? $to->getDBKey() : null; + $from = ( $from && $from->isLocal() ) ? $from->getDBKey() : null; + $to = ( $to && $to->isLocal() ) ? $to->getDBKey() : null; if( isset($from) ) $where[] = 'page_title >= '.$dbr->addQuotes( $from ); -- 2.20.1