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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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