Index: trunk/extensions/EducationProgram/specials/SpecialEPPage.php |
— | — | @@ -110,5 +110,16 @@ |
111 | 111 | ); |
112 | 112 | } |
113 | 113 | |
| 114 | + /** |
| 115 | + * Get the Language being used for this instance. |
| 116 | + * getLang was deprecated in 1.19, getLanguage was introduces in the same version. |
| 117 | + * |
| 118 | + * @since 0.1 |
| 119 | + * |
| 120 | + * @return Language |
| 121 | + */ |
| 122 | + public function getLanguage() { |
| 123 | + return method_exists( $this, 'getLanguage' ) ? $this->getLanguage() : $this->getLang(); |
| 124 | + } |
114 | 125 | |
115 | 126 | } |
Index: trunk/extensions/EducationProgram/includes/EPPager.php |
— | — | @@ -83,7 +83,7 @@ |
84 | 84 | * @return Language |
85 | 85 | */ |
86 | 86 | public function getLanguage() { |
87 | | - return $this->context->getLanguage(); |
| 87 | + return method_exists( $this->context, 'getLanguage' ) ? $this->context->getLanguage() : $this->context->getLang(); |
88 | 88 | } |
89 | 89 | |
90 | 90 | /** |