Index: branches/wmf/1.16wmf4/extensions/CentralNotice/TemplatePager.php |
— | — | @@ -30,7 +30,7 @@ |
31 | 31 | * Sort the banner list by tmp_id |
32 | 32 | */ |
33 | 33 | function getIndexField() { |
34 | | - return 'tmp_id'; |
| 34 | + return 'cn_templates.tmp_id'; |
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
Property changes on: branches/wmf/1.16wmf4/extensions/CentralNotice |
___________________________________________________________________ |
Modified: svn:mergeinfo |
38 | 38 | Merged /trunk/extensions/CentralNotice:r71748-71753 |
Property changes on: branches/wmf/1.16wmf4/includes/ChangesList.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
39 | 39 | Merged /trunk/phase3/includes/ChangesList.php:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/Article.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
40 | 40 | Merged /trunk/phase3/includes/Article.php:r71059,71098 |
Index: branches/wmf/1.16wmf4/includes/Pager.php |
— | — | @@ -190,8 +190,12 @@ |
191 | 191 | function extractResultInfo( $offset, $limit, ResultWrapper $res ) { |
192 | 192 | $numRows = $res->numRows(); |
193 | 193 | if ( $numRows ) { |
| 194 | + # Remove any table prefix from index field |
| 195 | + $parts = explode( '.', $this->mIndexField ); |
| 196 | + $indexColumn = end( $parts ); |
| 197 | + |
194 | 198 | $row = $res->fetchRow(); |
195 | | - $firstIndex = $row[$this->mIndexField]; |
| 199 | + $firstIndex = $row[$indexColumn]; |
196 | 200 | |
197 | 201 | # Discard the extra result row if there is one |
198 | 202 | if ( $numRows > $this->mLimit && $numRows > 1 ) { |
— | — | @@ -201,7 +205,7 @@ |
202 | 206 | $this->mPastTheEndIndex = $this->mPastTheEndRow->$indexField; |
203 | 207 | $res->seek( $numRows - 2 ); |
204 | 208 | $row = $res->fetchRow(); |
205 | | - $lastIndex = $row[$this->mIndexField]; |
| 209 | + $lastIndex = $row[$indexColumn]; |
206 | 210 | } else { |
207 | 211 | $this->mPastTheEndRow = null; |
208 | 212 | # Setting indexes to an empty string means that they will be |
— | — | @@ -211,7 +215,7 @@ |
212 | 216 | $this->mPastTheEndIndex = ''; |
213 | 217 | $res->seek( $numRows - 1 ); |
214 | 218 | $row = $res->fetchRow(); |
215 | | - $lastIndex = $row[$this->mIndexField]; |
| 219 | + $lastIndex = $row[$indexColumn]; |
216 | 220 | } |
217 | 221 | } else { |
218 | 222 | $firstIndex = ''; |
Property changes on: branches/wmf/1.16wmf4/includes/Sanitizer.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
219 | 223 | Merged /trunk/phase3/includes/Sanitizer.php:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/filerepo |
___________________________________________________________________ |
Modified: svn:mergeinfo |
220 | 224 | Merged /trunk/phase3/includes/filerepo:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/media/Bitmap.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
221 | 225 | Merged /trunk/phase3/includes/media/Bitmap.php:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/media |
___________________________________________________________________ |
Modified: svn:mergeinfo |
222 | 226 | Merged /trunk/phase3/includes/media:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/Preferences.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
223 | 227 | Merged /trunk/phase3/includes/Preferences.php:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/Html.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
224 | 228 | Merged /trunk/phase3/includes/Html.php:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/parser |
___________________________________________________________________ |
Modified: svn:mergeinfo |
225 | 229 | Merged /trunk/phase3/includes/parser:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/UserMailer.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
226 | 230 | Merged /trunk/phase3/includes/UserMailer.php:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/diff/DifferenceInterface.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
227 | 231 | Merged /trunk/phase3/includes/diff/DifferenceInterface.php:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/diff |
___________________________________________________________________ |
Modified: svn:mergeinfo |
228 | 232 | Merged /trunk/phase3/includes/diff:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/api/ApiLogin.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
229 | 233 | Merged /trunk/phase3/includes/api/ApiLogin.php:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/api/ApiBase.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
230 | 234 | Merged /trunk/phase3/includes/api/ApiBase.php:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/api/ApiQueryAllUsers.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
231 | 235 | Merged /trunk/phase3/includes/api/ApiQueryAllUsers.php:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/api |
___________________________________________________________________ |
Modified: svn:mergeinfo |
232 | 236 | Merged /trunk/phase3/includes/api:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/json/Services_JSON.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
233 | 237 | Merged /trunk/phase3/includes/json/Services_JSON.php:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/OutputPage.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
234 | 238 | Merged /trunk/phase3/includes/OutputPage.php:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/specials/SpecialUpload.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
235 | 239 | Merged /trunk/phase3/includes/specials/SpecialUpload.php:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/specials/SpecialAllmessages.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
236 | 240 | Merged /trunk/phase3/includes/specials/SpecialAllmessages.php:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/specials/SpecialUserlogin.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
237 | 241 | Merged /trunk/phase3/includes/specials/SpecialUserlogin.php:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/specials/SpecialRevisiondelete.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
238 | 242 | Merged /trunk/phase3/includes/specials/SpecialRevisiondelete.php:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/specials |
___________________________________________________________________ |
Modified: svn:mergeinfo |
239 | 243 | Merged /trunk/phase3/includes/specials:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/LogEventsList.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
240 | 244 | Merged /trunk/phase3/includes/LogEventsList.php:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/DefaultSettings.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
241 | 245 | Merged /trunk/phase3/includes/DefaultSettings.php:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/EditPage.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
242 | 246 | Merged /trunk/phase3/includes/EditPage.php:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/HTMLForm.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
243 | 247 | Merged /trunk/phase3/includes/HTMLForm.php:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/ConfEditor.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
244 | 248 | Merged /trunk/phase3/includes/ConfEditor.php:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/HistoryPage.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
245 | 249 | Merged /trunk/phase3/includes/HistoryPage.php:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/LocalisationCache.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
246 | 250 | Merged /trunk/phase3/includes/LocalisationCache.php:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes/HttpFunctions.php |
___________________________________________________________________ |
Modified: svn:mergeinfo |
247 | 251 | Merged /trunk/phase3/includes/HttpFunctions.php:r71059,71098 |
Property changes on: branches/wmf/1.16wmf4/includes |
___________________________________________________________________ |
Modified: svn:mergeinfo |
248 | 252 | Merged /trunk/phase3/includes:r71059,71098 |