Call directly numRows() on the result object instead of DatabaseBase::numRows()
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 19 Feb 2012 22:29:51 +0000 (22:29 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 19 Feb 2012 22:29:51 +0000 (22:29 +0000)
includes/specials/SpecialWatchlist.php

index 092fee2..9eb6bdf 100644 (file)
@@ -286,7 +286,7 @@ class SpecialWatchlist extends SpecialPage {
                wfRunHooks('SpecialWatchlistQuery', array(&$conds,&$tables,&$join_conds,&$fields) );
 
                $res = $dbr->select( $tables, $fields, $conds, __METHOD__, $options, $join_conds );
-               $numRows = $dbr->numRows( $res );
+               $numRows = $res->numRows();
 
                /* Start bottom header */