Followup r95458
authorSam Reed <reedy@users.mediawiki.org>
Tue, 6 Sep 2011 15:45:43 +0000 (15:45 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Tue, 6 Sep 2011 15:45:43 +0000 (15:45 +0000)
Add a couple of bits of documentation

Removed an unused global

No need to 1.18 this

maintenance/refreshImageMetadata.php

index ec61218..9b732ed 100644 (file)
@@ -156,6 +156,10 @@ class RefreshImageMetadata extends Maintenance {
                }
        }
 
+       /**
+        * @param $dbw DatabaseBase
+        * @return array
+        */
        function getConditions( $dbw ) {
                $conds = array();
 
@@ -179,8 +183,12 @@ class RefreshImageMetadata extends Maintenance {
                return $conds;
        }
 
+       /**
+        * @param $force bool
+        * @param $brokenOnly bool
+        */
        function setupParameters( $force, $brokenOnly ) {
-               global $wgUpdateCompatibleMetadata, $wgReadOnly;
+               global $wgUpdateCompatibleMetadata;
 
                if ( $brokenOnly ) {
                        $wgUpdateCompatibleMetadata = false;