Index: trunk/extensions/Reviews/specials/SpecialMyReviews.php |
— | — | @@ -54,24 +54,20 @@ |
55 | 55 | return false; |
56 | 56 | } |
57 | 57 | |
58 | | - if ( $this->getRequest()->wasPosted() ) { |
59 | | - |
| 58 | + if ( $subPage === '' ) { |
| 59 | + $this->getOutput()->addWikiMsg( 'reviews-myreviews-header' ); |
| 60 | + $this->displayReviewList(); |
60 | 61 | } |
61 | 62 | else { |
62 | | - if ( $subPage === '' ) { |
63 | | - $this->getOutput()->addWikiMsg( 'reviews-myreviews-header' ); |
| 63 | + $review = Review::selectRow( null, array( 'id' => $subPage, 'user_id' => $this->getUser()->getId() ) ); |
| 64 | + |
| 65 | + if ( $review == false ) { |
| 66 | + $this->getOutput()->addWikiMsg( 'reviews-myreviews-nosuchreview' ); |
64 | 67 | $this->displayReviewList(); |
65 | 68 | } |
66 | 69 | else { |
67 | | - $review = Review::selectRow( null, array( 'id' => $subPage, 'user_id' => $this->getUser()->getId() ) ); |
68 | | - |
69 | | - if ( $review == false ) { |
70 | | - $this->getOutput()->addWikiMsg( 'reviews-myreviews-nosuchreview' ); |
71 | | - $this->displayReviewList(); |
72 | | - } |
73 | | - else { |
74 | | - $this->displayEditControl( $review ); |
75 | | - } |
| 70 | + $this->getOutput()->addWikiMsg( 'reviews-myreviews-editheader' ); |
| 71 | + $this->displayEditControl( $review ); |
76 | 72 | } |
77 | 73 | } |
78 | 74 | } |
Index: trunk/extensions/Reviews/Reviews.i18n.php |
— | — | @@ -61,10 +61,12 @@ |
62 | 62 | // Special:MyReviews |
63 | 63 | 'reviews-myreviews-header' => 'This page lists all reviews you posted.', |
64 | 64 | 'reviews-myreviews-nosuchreview' => 'You do not have a review with the provided ID, it might have been deleted. All your reviews are listed below.', |
| 65 | + 'reviews-myreviews-editheader' => 'On this page you can edit your review. You can also view a list of [[Special:MyReviews|reviews you posted]].', |
65 | 66 | |
66 | 67 | // Special:Reviews |
67 | 68 | |
68 | 69 | // Review pager |
| 70 | + 'reviews-pager-no-results' => 'There are no reviews to list.', |
69 | 71 | 'reviews-pager-post-time' => 'Post time', |
70 | 72 | 'reviews-pager-state' => 'State', |
71 | 73 | 'reviews-pager-title' => 'Title', |
— | — | @@ -90,6 +92,7 @@ |
91 | 93 | 'reviews-submission-saving' => 'Submission button text while a save action is happening and the button gets disabled', |
92 | 94 | |
93 | 95 | 'reviews-myreviews-header' => "Line on top of a page explaining it's function", |
| 96 | + 'reviews-myreviews-editheader' => '', |
94 | 97 | |
95 | 98 | 'reviews-pager-post-time' => 'Tabele column header', |
96 | 99 | 'reviews-pager-state' => 'Tabele column header', |