Index: trunk/extensions/Reviews/specials/SpecialReviews.php |
— | — | @@ -160,8 +160,8 @@ |
161 | 161 | |
162 | 162 | $stats['title'] = htmlspecialchars( $review->getField( 'title' ) ); |
163 | 163 | $stats['page'] = Linker::link( $review->getTitle() ); |
164 | | - $stats['posted'] = htmlspecialchars( $this->getLang()->timeanddate( $review->getField( 'post_time' ), true ) ); |
165 | | - $stats['edited'] = htmlspecialchars( $this->getLang()->timeanddate( $review->getField( 'edit_time' ), true ) ); |
| 164 | + $stats['posted'] = htmlspecialchars( $this->getLanguage()->timeanddate( $review->getField( 'post_time' ), true ) ); |
| 165 | + $stats['edited'] = htmlspecialchars( $this->getLanguage()->timeanddate( $review->getField( 'edit_time' ), true ) ); |
166 | 166 | |
167 | 167 | $user = $review->getUser(); |
168 | 168 | $stats['user'] = Linker::userLink( $user->getId(), $user->getName() ) . |
— | — | @@ -170,7 +170,7 @@ |
171 | 171 | $stats['state'] = $review->getStateControl( $this->getUser() ); |
172 | 172 | |
173 | 173 | // TODO: might want to display stars here as well. |
174 | | - $stats['rating'] = htmlspecialchars( $this->getLang()->formatNum( $review->getField( 'rating' ) ) ); |
| 174 | + $stats['rating'] = htmlspecialchars( $this->getLanguage()->formatNum( $review->getField( 'rating' ) ) ); |
175 | 175 | |
176 | 176 | return $stats; |
177 | 177 | } |
Index: trunk/extensions/Reviews/includes/ReviewPager.php |
— | — | @@ -68,8 +68,8 @@ |
69 | 69 | * |
70 | 70 | * @return Language |
71 | 71 | */ |
72 | | - public function getLang() { |
73 | | - return version_compare( $GLOBALS['wgVersion'], '1.18', '>' ) ? parent::getLang() : $GLOBALS['wgLang']; |
| 72 | + public function getLanguage() { |
| 73 | + return version_compare( $GLOBALS['wgVersion'], '1.18', '>' ) ? parent::getLanguage() : $GLOBALS['wgLang']; |
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
— | — | @@ -81,7 +81,7 @@ |
82 | 82 | * @return User |
83 | 83 | */ |
84 | 84 | public function getUser() { |
85 | | - return version_compare( $GLOBALS['wgUser'], '1.18', '>' ) ? parent::getLang() : $GLOBALS['wgUser']; |
| 85 | + return version_compare( $GLOBALS['wgUser'], '1.18', '>' ) ? parent::getUser() : $GLOBALS['wgUser']; |
86 | 86 | } |
87 | 87 | |
88 | 88 | /** |
— | — | @@ -135,7 +135,7 @@ |
136 | 136 | public function formatValue( $name, $value ) { |
137 | 137 | switch ( $name ) { |
138 | 138 | case 'review_post_time': |
139 | | - $value = $this->getLang()->timeanddate( $value, true ); |
| 139 | + $value = $this->getLanguage()->timeanddate( $value, true ); |
140 | 140 | break; |
141 | 141 | case 'review_state': |
142 | 142 | $value = $this->currentReview->getStateControl( $this->getUser() ); |
— | — | @@ -159,7 +159,7 @@ |
160 | 160 | break; |
161 | 161 | case 'review_rating': |
162 | 162 | // TODO: might want to display stars here as well. |
163 | | - $value = $this->getLang()->formatNum( $value ); |
| 163 | + $value = $this->getLanguage()->formatNum( $value ); |
164 | 164 | break; |
165 | 165 | } |
166 | 166 | |