* Thomas Gries <mail(a)tgries.de> [Sun, 11 Mar 2012 22:38:10 +0100]:
Can someone help me, please:
I need the $article object (the article page, where the LinkEnd hook
is
called) inside
a function called by hook LinkEnd.
- because I want to modifiy some links in the hooked function,
but only on articles where the raw text contains some strings
in E:WikiArticleFeeds .
function onLinkEnd( $skin, Title $target, array $options, &$text, array
&$attribs, &$ret ) {
$article = new Article( $target, 0 );
}
Or, you need to get exactly $wgArticle but without declaring it as
global? Then I don't know how.
Dmitriy