From 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 12 Aug 2013 09:28:15 +0200 Subject: Update to MediaWiki 1.21.1 --- includes/PrefixSearch.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'includes/PrefixSearch.php') diff --git a/includes/PrefixSearch.php b/includes/PrefixSearch.php index 5d4b35c1..d37d9e80 100644 --- a/includes/PrefixSearch.php +++ b/includes/PrefixSearch.php @@ -32,7 +32,7 @@ class PrefixSearch { * * @param $search String * @param $limit Integer - * @param $namespaces Array: used if query is not explicitely prefixed + * @param array $namespaces used if query is not explicitly prefixed * @return Array of strings */ public static function titleSearch( $search, $limit, $namespaces = array() ) { @@ -45,7 +45,7 @@ class PrefixSearch { // Find a Title which is not an interwiki and is in NS_MAIN $title = Title::newFromText( $search ); if( $title && $title->getInterwiki() == '' ) { - $ns = array($title->getNamespace()); + $ns = array( $title->getNamespace() ); if( $ns[0] == NS_MAIN ) { $ns = $namespaces; // no explicit prefix, use default namespaces } @@ -91,7 +91,7 @@ class PrefixSearch { /** * Prefix search special-case for Special: namespace. * - * @param $search String: term + * @param string $search term * @param $limit Integer: max number of items to return * @return Array */ @@ -147,8 +147,8 @@ class PrefixSearch { * be automatically capitalized by Title::secureAndSpit() * later on depending on $wgCapitalLinks) * - * @param $namespaces Array: namespaces to search in - * @param $search String: term + * @param array $namespaces namespaces to search in + * @param string $search term * @param $limit Integer: max number of items to return * @return Array of title strings */ -- cgit v1.2.3-54-g00ecf