Manual talk:Hooks/LinkerMakeExternalLink

From MediaWiki.org
Jump to navigation Jump to search

This example is incorrect. The call in Linker.php is:

 $success = wfRunHooks('LinkerMakeExternalLink', array( &$url, &$text, &$link ) );

That is, the code needs to be updated to pass the attributes variable or the example needs amending to remove the $attribs parameter.

This is correct, $attribs has been added in 1.15. iAlex 11:36, 20 March 2009 (UTC)