Index: trunk/extensions/BackAndForth/BackAndForth.class.php |
— | — | @@ -64,8 +64,9 @@ |
65 | 65 | 'LIMIT' => 1, |
66 | 66 | ) |
67 | 67 | ); |
68 | | - if( $res->numRows() > 0 ) { |
69 | | - $row = $res->fetchObject(); |
| 68 | + if( $dbr->numRows( $res ) > 0 ) { |
| 69 | + $row = $dbr->fetchObject( $res ); |
| 70 | + $dbr->freeResult( $res ); |
70 | 71 | $target = Title::makeTitleSafe( $row->page_namespace, $row->page_title ); |
71 | 72 | if( $target instanceof Title ) { |
72 | 73 | $label = htmlspecialchars( wfMsg( "backforth-{$label}", $target->getPrefixedText() ) ); |