X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fsearch%2FSearchResult.php;h=7bfcd4546f9c3e1019500873e9b74d2d3b7d88e5;hb=56d2a644f757ff82d7f4b9c7fc646cdd708ad8fa;hp=2cdf9f414277fb95bad1fd690af5470474d9e3f3;hpb=80eeea984a186679bbccebe42a7cd7e06b94ae35;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/search/SearchResult.php b/includes/search/SearchResult.php index 2cdf9f4142..7bfcd4546f 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 ) { @@ -165,7 +165,7 @@ class SearchResult { } /** - * @return Title Title object for the redirect to this page, null if none or not supported + * @return Title|null Title object for the redirect to this page, null if none or not supported */ function getRedirectTitle() { return null; @@ -179,7 +179,7 @@ class SearchResult { } /** - * @return Title Title object (pagename+fragment) for the section, null if none or not supported + * @return Title|null Title object (pagename+fragment) for the section, null if none or not supported */ function getSectionTitle() { return null;