X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FTitleArray.php;h=5a28b85035704231426b8df506412cae259949d6;hb=929fad38095b1e10dae3d7af385afd4bfd223c25;hp=eac9211954abe9b57f934b0e23c1de88e3962b9a;hpb=1f84a574e337ef7249d19e80f21543a0b672d797;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/TitleArray.php b/includes/TitleArray.php index eac9211954..5a28b85035 100644 --- a/includes/TitleArray.php +++ b/includes/TitleArray.php @@ -30,14 +30,14 @@ */ abstract class TitleArray implements Iterator { /** - * @param $res ResultWrapper A SQL result including at least page_namespace and + * @param ResultWrapper $res A SQL result including at least page_namespace and * page_title -- also can have page_id, page_len, page_is_redirect, * page_latest (if those will be used). See Title::newFromRow. * @return TitleArrayFromResult */ static function newFromResult( $res ) { $array = null; - if ( !wfRunHooks( 'TitleArrayFromResult', array( &$array, $res ) ) ) { + if ( !Hooks::run( 'TitleArrayFromResult', [ &$array, $res ] ) ) { return null; } if ( $array === null ) { @@ -47,7 +47,7 @@ abstract class TitleArray implements Iterator { } /** - * @param $res ResultWrapper + * @param ResultWrapper $res * @return TitleArrayFromResult */ protected static function newFromResult_internal( $res ) {