Method documentation
authorSam Reed <reedy@users.mediawiki.org>
Sun, 2 Jan 2011 04:37:06 +0000 (04:37 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 2 Jan 2011 04:37:06 +0000 (04:37 +0000)
Change variable assignment

includes/api/ApiQueryAllimages.php
includes/api/ApiRollback.php
includes/installer/DatabaseUpdater.php

index c7b6b2d..94e221b 100644 (file)
@@ -48,6 +48,7 @@ class ApiQueryAllimages extends ApiQueryGeneratorBase {
         * which may not necesarilly be the same as the local DB.
         *
         * TODO: allow querying non-local repos.
+        * @return DatabaseBase
         */
        protected function getDB() {
                return $this->mRepo->getSlaveDB();
index cf4e97e..7e6d32f 100644 (file)
@@ -47,7 +47,7 @@ class ApiRollback extends ApiBase {
                $titleObj = $this->getTitle();
                $articleObj = new Article( $titleObj );
                $summary = ( isset( $params['summary'] ) ? $params['summary'] : '' );
-               $details = null;
+               $details = array();
                $retval = $articleObj->doRollback( $this->getUser(), $summary, $params['token'], $params['markbot'], $details );
 
                if ( $retval ) {
index c0c3d47..acb5c27 100644 (file)
@@ -89,7 +89,7 @@ abstract class DatabaseUpdater {
        /**
         * Get a database connection to run updates
         *
-        * @return DatabasBase object
+        * @return DatabaseBase object
         */
        public function getDB() {
                return $this->db;