mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-11-24 00:05:50 +00:00
Use ::class for class name resolution
Change-Id: Ib75278e3728c1cd24e568f9f30f5cb32f19c5622
This commit is contained in:
parent
1071a53446
commit
5bd33d9855
|
@ -159,7 +159,7 @@ class Hooks {
|
||||||
* @return bool Always <code>true</code>
|
* @return bool Always <code>true</code>
|
||||||
*/
|
*/
|
||||||
public static function onParserFirstCallInit( Parser $parser ) {
|
public static function onParserFirstCallInit( Parser $parser ) {
|
||||||
$parser->setFunctionHook( 'related', 'RelatedArticles\\Hooks::onFuncRelated' );
|
$parser->setFunctionHook( 'related', [ self::class, 'onFuncRelated' ] );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue