For MediaWiki (recent comments | status changes | tags | authors | states | release notes | statistics)
Index: trunk/extensions/TitleKey/TitleKey_body.php =================================================================== --- trunk/extensions/TitleKey/TitleKey_body.php (revision 35606) +++ trunk/extensions/TitleKey/TitleKey_body.php (revision 35607) @@ -185,7 +185,11 @@ return false; } - static function prefixSearch( $ns, $search, $limit ) { + static function prefixSearch( $namespaces, $search, $limit ) { + $ns = array_shift( $namespaces ); // support only one namespace + if( in_array( NS_MAIN, $namespaces ) ) + $ns = NS_MAIN; // if searching on many always default to main + $key = self::normalize( $search ); $dbr = wfGetDB( DB_SLAVE );