From: addshore Date: Mon, 7 Nov 2016 12:59:48 +0000 (+0000) Subject: Fix docs for LanguageLinks hook X-Git-Tag: 1.31.0-rc.0~4941^2 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=1c2f5131bf34925727e28a3b32334992efe67e7b;p=lhc%2Fweb%2Fwiklou.git Fix docs for LanguageLinks hook Also updated on mw.org. This array never has language keys (at least not unless other extensions add them) but core will always just have numerical keys. Change-Id: Ie9c42ac2b4ff143e36d07642f57cca769e8c00e7 --- diff --git a/docs/hooks.txt b/docs/hooks.txt index ea662ccf3d..906623f18a 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1926,8 +1926,8 @@ $code: language of the preferred translations in various places to allow extensions to define the effective language links for a page. $title: The page's Title. -&$links: Associative array mapping language codes to prefixed links of the - form "language:title". +&$links: Array with elements of the form "language:title" in the order + that they will be output. &$linkFlags: Associative array mapping prefixed links to arrays of flags. Currently unused, but planned to provide support for marking individual language links in the UI, e.g. for featured articles.