From: Sam Reed Date: Tue, 6 Sep 2011 15:45:43 +0000 (+0000) Subject: Followup r95458 X-Git-Tag: 1.31.0-rc.0~27872 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=579b0c5dbc2b361ad37bf4f1e184079345903f24;p=lhc%2Fweb%2Fwiklou.git Followup r95458 Add a couple of bits of documentation Removed an unused global No need to 1.18 this --- diff --git a/maintenance/refreshImageMetadata.php b/maintenance/refreshImageMetadata.php index ec612183cb..9b732ed039 100644 --- a/maintenance/refreshImageMetadata.php +++ b/maintenance/refreshImageMetadata.php @@ -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;