r107955 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107954‎ | r107955 | r107956 >
Date:22:43, 3 January 2012
Author:reedy
Status:ok
Tags:
Comment:
Add getLanguage for ease (then we know it exists!)
Modified paths:
  • /branches/wmf/1.18wmf1/includes/SpecialPage.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/includes/SpecialPage.php
@@ -678,6 +678,15 @@
679679 }
680680
681681 /**
 682+ * Shortcut to get user's language
 683+ *
 684+ * @return Language
 685+ */
 686+ public function getLanguage() {
 687+ return $this->getContext()->getLanguage();
 688+ }
 689+
 690+ /**
682691 * Return the full title, including $par
683692 *
684693 * @return Title

Status & tagging log