(bug 45535) Hook for changing language links.
authordaniel <daniel.kinzler@wikimedia.de>
Fri, 19 Apr 2013 11:19:06 +0000 (13:19 +0200)
committerBrad Jorsch <bjorsch@wikimedia.org>
Mon, 29 Apr 2013 13:13:47 +0000 (09:13 -0400)
commit8e7150b5497bc2308da99ca07f4d3c0c89ec8e21
tree8f9da7c5a7626f277989e054a5e3d4d0caa864ac
parentbc137a4884aa0a613c544086f8a963685fb2442f
(bug 45535) Hook for changing language links.

This adds a new hook called LanguageLinks which is called
whenever a list of language links is returned to the user.
This gives extensions the option to manipulate the links
on the fly.

Note that this change only covers the language links used
in OutputPage and by ApiParse. Adapting ApiQueryLangLinks is
left as a follow-up task.

As explained on bugzilla, this is a precondition to
allowing Wikibase/Wikidata to update languagelinks without
forcing a (redundant) re-parse of the page content.

This change also introduces the notion of link flags that
can be used to associate flags with language links. This
will be integrated with ParserOutput and OutputPage in a
follow-up.

Change-Id: Iaec0faa131413a291fc8f77496e4f371addb3b99
RELEASE-NOTES-1.22
docs/hooks.txt
includes/OutputPage.php
includes/api/ApiParse.php
includes/api/ApiQueryAllPages.php
includes/api/ApiQueryLangBacklinks.php
includes/api/ApiQueryLangLinks.php