Index: trunk/extensions/Reviews/includes/ReviewControl.php |
— | — | @@ -46,7 +46,7 @@ |
47 | 47 | } |
48 | 48 | |
49 | 49 | $attribs['data-review'] = FormatJson::encode( $review ); |
50 | | - $attribs['data-reload-target'] = $context->getTitle()->getLocalURL() . '#reviewslist'; |
| 50 | + $attribs['data-reload-target'] = $context->getTitle()->getLocalURL( array( 'action' => 'refresh' ) ); |
51 | 51 | |
52 | 52 | $out->addHTML( Html::element( 'div', $attribs ) ); |
53 | 53 | } |
Index: trunk/extensions/Reviews/Reviews.i18n.php |
— | — | @@ -22,6 +22,7 @@ |
23 | 23 | |
24 | 24 | // Misc |
25 | 25 | 'reviews-toplink' => 'My reviews', |
| 26 | + 'reviews-list-title' => 'Reviews', |
26 | 27 | |
27 | 28 | // Rights |
28 | 29 | 'right-reviewsadmin' => 'Manage reviews', |
Index: trunk/extensions/Reviews/Reviews.hooks.php |
— | — | @@ -172,15 +172,14 @@ |
173 | 173 | $reviewPager = new ReviewPager( array( 'page_id' => $out->getTitle()->getArticleID() ) ); |
174 | 174 | |
175 | 175 | if ( $reviewPager->getNumRows() ) { |
| 176 | + $out->addHTML( HTML::element( 'h2', array( 'id' => 'reviewslist' ), wfMsg( 'reviews-list-title' ) ) ); |
| 177 | + |
176 | 178 | $out->addHTML( |
177 | 179 | $reviewPager->getNavigationBar() . |
178 | 180 | $reviewPager->getBody() . |
179 | 181 | $reviewPager->getNavigationBar() |
180 | 182 | ); |
181 | 183 | } |
182 | | - else { |
183 | | - $this->getOutput()->addWikiMsg( 'reviews-pager-no-results' ); |
184 | | - } |
185 | 184 | |
186 | 185 | /* User */ $user = $out->getUser(); |
187 | 186 | |