From: Aaron Schulz Date: Fri, 15 Aug 2008 18:28:54 +0000 (+0000) Subject: double-check with isLocal() to be safe X-Git-Tag: 1.31.0-rc.0~45883 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=df4f9ebfb9a03c02ceffc3c56ba4a09963dd528f;p=lhc%2Fweb%2Fwiklou.git double-check with isLocal() to be safe --- 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 );