diff options
Diffstat (limited to 'includes/search/SearchResult.php')
-rw-r--r-- | includes/search/SearchResult.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/includes/search/SearchResult.php b/includes/search/SearchResult.php index aeaba8df..d384ae96 100644 --- a/includes/search/SearchResult.php +++ b/includes/search/SearchResult.php @@ -71,7 +71,7 @@ class SearchResult { $this->mTitle = $title; if ( !is_null( $this->mTitle ) ) { $id = false; - wfRunHooks( 'SearchResultInitFromTitle', array( $title, &$id ) ); + Hooks::run( 'SearchResultInitFromTitle', array( $title, &$id ) ); $this->mRevision = Revision::newFromTitle( $this->mTitle, $id, Revision::READ_NORMAL ); if ( $this->mTitle->getNamespace() === NS_FILE ) { @@ -186,6 +186,13 @@ class SearchResult { } /** + * @return string Highlighted relevant category name or '' if none or not supported + */ + public function getCategorySnippet() { + return ''; + } + + /** * @return string Timestamp */ function getTimestamp() { |