Index: trunk/extensions/Contest/specials/SpecialContestPage.php |
— | — | @@ -182,5 +182,17 @@ |
183 | 183 | |
184 | 184 | $this->getOutput()->addHTML( self::getNavigation( $subPage, $this->getUser(), $this->getLanguage(), $this->getName() ) ); |
185 | 185 | } |
| 186 | + |
| 187 | + /** |
| 188 | + * Get the Language being used for this instance. |
| 189 | + * getLang was deprecated in 1.19, getLanguage was introduces in the same version. |
| 190 | + * |
| 191 | + * @since 0.2 |
| 192 | + * |
| 193 | + * @return Language |
| 194 | + */ |
| 195 | + public function getLanguage() { |
| 196 | + return method_exists( $this, 'getLanguage' ) ? $this->getLanguage() : $this->getLang(); |
| 197 | + } |
186 | 198 | |
187 | 199 | } |
Index: trunk/extensions/Contest/specials/SpecialEditContest.php |
— | — | @@ -395,6 +395,18 @@ |
396 | 396 | . '<hr style="display: block; clear: both; visibility: hidden;" />' |
397 | 397 | ); |
398 | 398 | } |
| 399 | + |
| 400 | + /** |
| 401 | + * Get the Language being used for this instance. |
| 402 | + * getLang was deprecated in 1.19, getLanguage was introduces in the same version. |
| 403 | + * |
| 404 | + * @since 0.2 |
| 405 | + * |
| 406 | + * @return Language |
| 407 | + */ |
| 408 | + public function getLanguage() { |
| 409 | + return method_exists( $this, 'getLanguage' ) ? $this->getLanguage() : $this->getLang(); |
| 410 | + } |
399 | 411 | |
400 | 412 | } |
401 | 413 | |