Index: trunk/extensions/Reviews/includes/ReviewPager.php |
— | — | @@ -82,6 +82,7 @@ |
83 | 83 | } |
84 | 84 | |
85 | 85 | $headers['review_state'] = 'reviews-pager-state'; |
| 86 | + $headers['review_rating'] = 'reviews-pager-rating'; |
86 | 87 | |
87 | 88 | $headers = array_map( 'wfMsg', $headers ); |
88 | 89 | } |
— | — | @@ -135,6 +136,10 @@ |
136 | 137 | ); |
137 | 138 | } |
138 | 139 | break; |
| 140 | + case 'review_rating': |
| 141 | + // TODO: might want to display stars here as well. |
| 142 | + $value = $this->getLang()->formatNum( $value ); |
| 143 | + break; |
139 | 144 | } |
140 | 145 | |
141 | 146 | return $value; |
— | — | @@ -150,6 +155,7 @@ |
151 | 156 | 'review_title', |
152 | 157 | 'review_user_id', |
153 | 158 | 'review_page_id', |
| 159 | + 'review_rating', |
154 | 160 | ), |
155 | 161 | 'conds' => $this->conds, |
156 | 162 | ); |
— | — | @@ -173,6 +179,7 @@ |
174 | 180 | array( |
175 | 181 | 'review_post_time', |
176 | 182 | 'review_state', |
| 183 | + 'review_rating', |
177 | 184 | ) |
178 | 185 | ); |
179 | 186 | } |
Index: trunk/extensions/Reviews/Reviews.i18n.php |
— | — | @@ -76,6 +76,7 @@ |
77 | 77 | 'reviews-pager-title' => 'Title', |
78 | 78 | 'reviews-pager-user' => 'User', |
79 | 79 | 'reviews-pager-page' => 'For page', |
| 80 | + 'reviews-pager-rating' => 'Rating', |
80 | 81 | ); |
81 | 82 | |
82 | 83 | /** Message documentation (Message documentation) |