Index: branches/REL1_18/phase3/includes/RequestContext.php |
— | — | @@ -65,6 +65,13 @@ |
66 | 66 | public function getLang(); |
67 | 67 | |
68 | 68 | /** |
| 69 | + * Get the Language object |
| 70 | + * |
| 71 | + * @return Language |
| 72 | + */ |
| 73 | + public function getLanguage(); |
| 74 | + |
| 75 | + /** |
69 | 76 | * Get the Skin object |
70 | 77 | * |
71 | 78 | * @return Skin |
— | — | @@ -234,6 +241,15 @@ |
235 | 242 | } |
236 | 243 | |
237 | 244 | /** |
| 245 | + * Get the Language object |
| 246 | + * |
| 247 | + * @return Language |
| 248 | + */ |
| 249 | + public function getLanguage() { |
| 250 | + return $this->getLang(); |
| 251 | + } |
| 252 | + |
| 253 | + /** |
238 | 254 | * Set the Skin object |
239 | 255 | * |
240 | 256 | * @param $s Skin |
— | — | @@ -379,6 +395,15 @@ |
380 | 396 | } |
381 | 397 | |
382 | 398 | /** |
| 399 | + * Get the Language object |
| 400 | + * |
| 401 | + * @return Language |
| 402 | + */ |
| 403 | + public function getLanguage() { |
| 404 | + return $this->getContext()->getLang(); |
| 405 | + } |
| 406 | + |
| 407 | + /** |
383 | 408 | * Get the Skin object |
384 | 409 | * |
385 | 410 | * @return Skin |
Index: branches/REL1_18/phase3/includes/SpecialPage.php |
— | — | @@ -671,19 +671,18 @@ |
672 | 672 | * Shortcut to get user's language |
673 | 673 | * |
674 | 674 | * @return Language |
675 | | - * @since 1.18.1 |
| 675 | + * @since 1.18 |
676 | 676 | */ |
677 | | - public function getLanguage() { |
678 | | - return $this->getContext()->getLanguage(); |
| 677 | + public function getLang() { |
| 678 | + return $this->getContext()->getLang(); |
679 | 679 | } |
680 | 680 | |
681 | 681 | /** |
682 | 682 | * Shortcut to get user's language |
683 | 683 | * |
684 | 684 | * @return Language |
685 | | - * @since 1.18 |
686 | 685 | */ |
687 | | - public function getLang() { |
| 686 | + public function getLanguage() { |
688 | 687 | return $this->getContext()->getLang(); |
689 | 688 | } |
690 | 689 | |