Index: trunk/phase3/includes/SpecialPage.php |
— | — | @@ -639,6 +639,16 @@ |
640 | 640 | } |
641 | 641 | |
642 | 642 | /** |
| 643 | + * Shortcut to get user's language |
| 644 | + * |
| 645 | + * @return Language |
| 646 | + * @since 1.19 |
| 647 | + */ |
| 648 | + public function getLang() { |
| 649 | + return $this->getContext()->getLang(); |
| 650 | + } |
| 651 | + |
| 652 | + /** |
643 | 653 | * Return the full title, including $par |
644 | 654 | * |
645 | 655 | * @return Title |