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