r107902 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107901‎ | r107902 | r107903 >
Date:17:14, 3 January 2012
Author:reedy
Status:ok
Tags:
Comment:
Copy in getLanguage to prevent any silly fatals that might end up occurring
Modified paths:
  • /branches/REL1_18/phase3/includes/SpecialPage.php (modified) (history)

Diff [purge]

Index: branches/REL1_18/phase3/includes/SpecialPage.php
@@ -671,6 +671,16 @@
672672 * Shortcut to get user's language
673673 *
674674 * @return Language
 675+ * @since 1.18.1
 676+ */
 677+ public function getLanguage() {
 678+ return $this->getContext()->getLanguage();
 679+ }
 680+
 681+ /**
 682+ * Shortcut to get user's language
 683+ *
 684+ * @return Language
675685 * @since 1.18
676686 */
677687 public function getLang() {

Status & tagging log