From: Brion Vibber Date: Tue, 28 Mar 2006 21:50:33 +0000 (+0000) Subject: // Quickie hack; patch-ss_images.sql uses variables which don't X-Git-Tag: 1.6.0~90 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=4c587ab3c4f991dea37558a5b507e28bd176c31a;p=lhc%2Fweb%2Fwiklou.git // Quickie hack; patch-ss_images.sql uses variables which don't // replicate properly. --- diff --git a/maintenance/refreshImageCount.php b/maintenance/refreshImageCount.php new file mode 100644 index 0000000000..797ceddc61 --- /dev/null +++ b/maintenance/refreshImageCount.php @@ -0,0 +1,16 @@ +selectField( 'image', 'COUNT(*)' ); + +echo "$wgDBname: setting ss_images to $count\n"; +$dbw->update( 'site_stats', + array( 'ss_images' => $count ), + array( 'ss_row_id' => 1 ) ); + +?> \ No newline at end of file