X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=blobdiff_plain;f=includes%2FTitleArray.php;h=bf2344bbb7717f93089c3e6f47d8ae3050dc2154;hb=78b78644fb69a28f5719de7aa6f0215c6a17b715;hp=b67d9f4d67e59711e4b808dafe61e76d624abffc;hpb=bd2a78a159ce6d9f7b27fd75d05570228b44c3cb;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/TitleArray.php b/includes/TitleArray.php index b67d9f4d67..bf2344bbb7 100644 --- a/includes/TitleArray.php +++ b/includes/TitleArray.php @@ -24,6 +24,8 @@ * @file */ +use Wikimedia\Rdbms\ResultWrapper; + /** * The TitleArray class only exists to provide the newFromResult method at pre- * sent. @@ -37,7 +39,7 @@ abstract class TitleArray implements Iterator { */ static function newFromResult( $res ) { $array = null; - if ( !wfRunHooks( 'TitleArrayFromResult', array( &$array, $res ) ) ) { + if ( !Hooks::run( 'TitleArrayFromResult', [ &$array, $res ] ) ) { return null; } if ( $array === null ) {