From 1c2f5131bf34925727e28a3b32334992efe67e7b Mon Sep 17 00:00:00 2001 From: addshore Date: Mon, 7 Nov 2016 12:59:48 +0000 Subject: [PATCH] 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 --- docs/hooks.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.20.1