X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSiteStats.php;h=76e7f7eb9fbd9ac43c475d3bd3c163427c6f69a1;hb=06f87a12789fe993faac72aa6b7700bd48a0f99f;hp=81172a14f7ac14b3543397e7c91ec1927ef02227;hpb=c42ffc0e45f66055882b021d9e9f719998786c2a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SiteStats.php b/includes/SiteStats.php index 81172a14f7..76e7f7eb9f 100644 --- a/includes/SiteStats.php +++ b/includes/SiteStats.php @@ -98,7 +98,7 @@ class SiteStats { } /** - * @param DatabaseBase $db + * @param IDatabase $db * @return bool|ResultWrapper */ static function doLoad( $db ) { @@ -281,12 +281,12 @@ class SiteStatsInit { /** * Constructor - * @param bool|DatabaseBase $database - * - Boolean: whether to use the master DB - * - DatabaseBase: database connection to use + * @param bool|IDatabase $database + * - boolean: Whether to use the master DB + * - IDatabase: Database connection to use */ public function __construct( $database = false ) { - if ( $database instanceof DatabaseBase ) { + if ( $database instanceof IDatabase ) { $this->db = $database; } else { $this->db = wfGetDB( $database ? DB_MASTER : DB_SLAVE ); @@ -364,11 +364,11 @@ class SiteStatsInit { * Do all updates and commit them. More or less a replacement * for the original initStats, but without output. * - * @param DatabaseBase|bool $database - * - Boolean: whether to use the master DB - * - DatabaseBase: database connection to use + * @param IDatabase|bool $database + * - boolean: Whether to use the master DB + * - IDatabase: Database connection to use * @param array $options Array of options, may contain the following values - * - activeUsers Boolean: whether to update the number of active users (default: false) + * - activeUsers boolean: Whether to update the number of active users (default: false) */ public static function doAllAndCommit( $database, array $options = array() ) { $options += array( 'update' => false, 'activeUsers' => false );