Fix docs for LanguageLinks hook
authoraddshore <addshorewiki@gmail.com>
Mon, 7 Nov 2016 12:59:48 +0000 (12:59 +0000)
committeraddshore <addshorewiki@gmail.com>
Mon, 7 Nov 2016 12:59:48 +0000 (12:59 +0000)
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

index ea662cc..906623f 100644 (file)
@@ -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.