Index: trunk/phase3/includes/specials/SpecialAllpages.php |
— | — | @@ -114,8 +114,8 @@ |
115 | 115 | |
116 | 116 | $from = Title::makeTitleSafe( $namespace, $from ); |
117 | 117 | $to = Title::makeTitleSafe( $namespace, $to ); |
118 | | - $from = $from ? $from->getDBKey() : null; |
119 | | - $to = $to ? $to->getDBKey() : null; |
| 118 | + $from = ( $from && $from->isLocal() ) ? $from->getDBKey() : null; |
| 119 | + $to = ( $to && $to->isLocal() ) ? $to->getDBKey() : null; |
120 | 120 | |
121 | 121 | if( isset($from) ) |
122 | 122 | $where[] = 'page_title >= '.$dbr->addQuotes( $from ); |