Last modified: 2010-05-15 15:56:39 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T8084, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 6084 - Links rendered by an extension don't register in the pagelinks table
Links rendered by an extension don't register in the pagelinks table
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.6.x
Other Linux
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-05-25 15:41 UTC by Steve Atty
Modified: 2010-05-15 15:56 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Steve Atty 2006-05-25 15:41:05 UTC
I've written some extensions which as part of their output return links to other
pages on my site. 
I do this by building up the text for the link using the normal wiki syntac and
then pass the resulting string through the parser:

 $o.= $wgOut->parse("[[Pubs:".$data_item["page"]."|".$data_item["name"]."]]",false);

Under 1.5.5 links created in such a way were picked up when the page containing
the extension was edited and were included in the pagelinks table (and thus in
the Special:Mostlinked page).

Under 1.6.6 this is no longer the case. The pages display perfectly and the
links work but the pagelinks table is not updated.
Comment 1 Brion Vibber 2006-05-25 19:16:57 UTC
Run it through the parser object you've been passed, so the links get 
kept.

See Cite.php for examples.
Comment 2 Steve Atty 2006-05-26 08:19:54 UTC
This is the Parser object that was introduced at 1.6 I take it? So basically
anything written for 1.5 (which didn't get the parser object passed) will need
re-writing?
Comment 3 Rob Church 2006-05-26 23:20:53 UTC
A third parameter; the reference to the current parser, was added to parser hook
rendering functions as of 1.5.8.

Extensions often need rewriting to reflect changes to the branch(es) they intend
to support.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links