X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FPrefixSearch.php;h=55a4f49b34615768066c86ef0664c270b7b8ae53;hb=524d92b61f2a951200b00326cfac6b25a830acb6;hp=caa3ef52869d69b6f05ff64aa67090d38af69a5f;hpb=6f6638e01e5f5099fe400bf338a8a6e9790eaf91;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/PrefixSearch.php b/includes/PrefixSearch.php index caa3ef5286..55a4f49b34 100644 --- a/includes/PrefixSearch.php +++ b/includes/PrefixSearch.php @@ -95,7 +95,6 @@ abstract class PrefixSearch { * @return array */ public function searchWithVariants( $search, $limit, array $namespaces, $offset = 0 ) { - wfProfileIn( __METHOD__ ); $searches = $this->search( $search, $limit, $namespaces, $offset ); // if the content language has variants, try to retrieve fallback results @@ -116,7 +115,6 @@ abstract class PrefixSearch { } } } - wfProfileOut( __METHOD__ ); return $searches; } @@ -157,7 +155,10 @@ abstract class PrefixSearch { } } $srchres = array(); - if ( Hooks::run( 'PrefixSearchBackend', array( $namespaces, $search, $limit, &$srchres, $offset ) ) ) { + if ( Hooks::run( + 'PrefixSearchBackend', + array( $namespaces, $search, $limit, &$srchres, $offset ) + ) ) { return $this->titles( $this->defaultSearchBackend( $namespaces, $search, $limit, $offset ) ); } return $this->strings( $this->handleResultFromHook( $srchres, $namespaces, $search, $limit ) );