Index: branches/wmf/1.18wmf1/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/wmf/1.18wmf1/includes/SpecialPage.php |
— | — | @@ -683,7 +683,7 @@ |
684 | 684 | * @return Language |
685 | 685 | */ |
686 | 686 | public function getLanguage() { |
687 | | - return $this->getContext()->getLanguage(); |
| 687 | + return $this->getContext()->getLang(); |
688 | 688 | } |
689 | 689 | |
690 | 690 | /** |