r73862 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73861‎ | r73862 | r73863 >
Date:02:24, 28 September 2010
Author:brion
Status:ok
Tags:
Comment:
Fix tab/space, use null as default value rather than string to match expected return (cleanup from r73859)
Modified paths:
  • /trunk/phase3/includes/search/SearchEngine.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/search/SearchEngine.php
@@ -111,7 +111,7 @@
112112 $allSearchTerms = array_merge( $allSearchTerms, $wgContLang->autoConvertToAllVariants( $searchterm ) );
113113 }
114114
115 - $titleResult = '';
 115+ $titleResult = null;
116116 if ( !wfRunHooks( 'SearchGetNearMatchBefore', array( $allSearchTerms, &$titleResult ) ) ) {
117117 return $titleResult;
118118 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r73859Define variable before usage in hook callreedy01:21, 28 September 2010

Status & tagging log