Index: trunk/phase3/includes/Pager.php |
— | — | @@ -142,7 +142,7 @@ |
143 | 143 | * has been kept minimal to make it overridable if necessary, to allow for |
144 | 144 | * result sets formed from multiple DB queries. |
145 | 145 | */ |
146 | | - function doQuery() { |
| 146 | + public function doQuery() { |
147 | 147 | # Use the child class name for profiling |
148 | 148 | $fname = __METHOD__ . ' (' . get_class( $this ) . ')'; |
149 | 149 | wfProfileIn( $fname ); |
— | — | @@ -199,7 +199,7 @@ |
200 | 200 | # Remove any table prefix from index field |
201 | 201 | $parts = explode( '.', $this->mIndexField ); |
202 | 202 | $indexColumn = end( $parts ); |
203 | | - |
| 203 | + |
204 | 204 | $row = $res->fetchRow(); |
205 | 205 | $firstIndex = $row[$indexColumn]; |
206 | 206 | |
— | — | @@ -707,7 +707,9 @@ |
708 | 708 | function getNavigationBar() { |
709 | 709 | global $wgLang; |
710 | 710 | |
711 | | - if ( !$this->isNavigationBarShown() ) return ''; |
| 711 | + if ( !$this->isNavigationBarShown() ) { |
| 712 | + return ''; |
| 713 | + } |
712 | 714 | |
713 | 715 | if ( isset( $this->mNavigationBar ) ) { |
714 | 716 | return $this->mNavigationBar; |
— | — | @@ -1002,7 +1004,7 @@ |
1003 | 1005 | */ |
1004 | 1006 | function getLimitSelect() { |
1005 | 1007 | global $wgLang; |
1006 | | - |
| 1008 | + |
1007 | 1009 | # Add the current limit from the query string |
1008 | 1010 | # to avoid that the limit is lost after clicking Go next time |
1009 | 1011 | if ( !in_array( $this->mLimit, $this->mLimitsShown ) ) { |
Index: trunk/extensions/AbuseFilter/special/SpecialAbuseLog.php |
— | — | @@ -202,6 +202,7 @@ |
203 | 203 | } |
204 | 204 | |
205 | 205 | $pager = new AbuseLogPager( $this, $conds ); |
| 206 | + $pager->doQuery(); |
206 | 207 | $result = $pager->getResult(); |
207 | 208 | if( $result && $result->numRows() !== 0 ) { |
208 | 209 | $wgOut->addHTML( $pager->getNavigationBar() . |