Message info
 
To:mediawiki-cvs@lists.wikimedia.org From:ialex@svn.wikimedia.org Subject:[MediaWiki-CVS] SVN: [111894] trunk/phase3/includes/specials/SpecialWatchlist.php Date:Sun, 19 Feb 2012 22:29:51 +0000
 

https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111894

Revision: 111894
Author: ialex
Date: 2012-02-19 22:29:51 +0000 (Sun, 19 Feb 2012)
Log Message:
-----------
Call directly numRows() on the result object instead of DatabaseBase::numRows()

Modified Paths:
--------------
trunk/phase3/includes/specials/SpecialWatchlist.php

Modified: trunk/phase3/includes/specials/SpecialWatchlist.php
===================================================================
--- trunk/phase3/includes/specials/SpecialWatchlist.php 2012-02-19 22:29:04 UTC (rev 111893)
+++ trunk/phase3/includes/specials/SpecialWatchlist.php 2012-02-19 22:29:51 UTC (rev 111894)
@@ -286,7 +286,7 @@
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 */



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs