From 287bb1a064c48c8222a824452f1226e64816ffeb Mon Sep 17 00:00:00 2001 From: Leszek Manicki Date: Mon, 7 Nov 2016 14:13:51 +0100 Subject: [PATCH] Fix docs for OutputPage::addLanguageLinks and OutputPage::setLanguageLinks Per what has been described and fixed in Ie9c42ac2b4ff143e36d07642f57cca769e8c00e7. Change-Id: I2af28ae97805f3259ca038942a84b43f89b55150 --- includes/OutputPage.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index bf59c9a5d2..1e23de536e 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1214,8 +1214,8 @@ class OutputPage extends ContextSource { /** * Add new language links * - * @param array $newLinkArray Associative array mapping language code to the page - * name + * @param string[] $newLinkArray Array of interwiki-prefixed (non DB key) titles + * (e.g. 'fr:Test page') */ public function addLanguageLinks( array $newLinkArray ) { $this->mLanguageLinks += $newLinkArray; @@ -1224,8 +1224,8 @@ class OutputPage extends ContextSource { /** * Reset the language links and add new language links * - * @param array $newLinkArray Associative array mapping language code to the page - * name + * @param string[] $newLinkArray Array of interwiki-prefixed (non DB key) titles + * (e.g. 'fr:Test page') */ public function setLanguageLinks( array $newLinkArray ) { $this->mLanguageLinks = $newLinkArray; @@ -1234,7 +1234,7 @@ class OutputPage extends ContextSource { /** * Get the list of language links * - * @return array Array of Interwiki Prefixed (non DB key) Titles (e.g. 'fr:Test page') + * @return string[] Array of interwiki-prefixed (non DB key) titles (e.g. 'fr:Test page') */ public function getLanguageLinks() { return $this->mLanguageLinks; -- 2.20.1