Make OrphanStats::getDB()'s signature compatible with parent.
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Sat, 18 Aug 2012 14:00:13 +0000 (16:00 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Sat, 18 Aug 2012 14:02:43 +0000 (16:02 +0200)
Was throwing Strict Standards: Declaration of OrphanStats::getDB()
should be compatible with that of Maintenance::getDB()
in maintenance/storage/orphanStats.php on line 25

Change-Id: I7451ada12a8c45aa37883b4b3803fbf505eec15b

maintenance/storage/orphanStats.php

index 8f0384d..f3b521f 100644 (file)
@@ -28,7 +28,7 @@ class OrphanStats extends Maintenance {
                $this->mDescription = "how some statistics on the blob_orphans table, created with trackBlobs.php";
        }
 
-       protected function getDB( $cluster ) {
+       protected function &getDB( $cluster, $groups = array(), $wiki = false ) {
                $lb = wfGetLBFactory()->getExternalLB( $cluster );
                return $lb->getConnection( DB_SLAVE );
        }