From 183851b06bd6c52f3cae5375f433da720d410447 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 11 Oct 2006 18:12:39 +0000 Subject: MediaWiki 1.7.1 wiederhergestellt --- maintenance/refreshImageCount.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 maintenance/refreshImageCount.php (limited to 'maintenance/refreshImageCount.php') diff --git a/maintenance/refreshImageCount.php b/maintenance/refreshImageCount.php new file mode 100644 index 00000000..15ce2b91 --- /dev/null +++ b/maintenance/refreshImageCount.php @@ -0,0 +1,25 @@ +selectField( 'site_stats', 'ss_images' ); + +echo "$wgDBname: forcing ss_images to $count\n"; + +// First set to NULL so that it changes on the master +$dbw->update( 'site_stats', + array( 'ss_images' => null ), + array( 'ss_row_id' => 1 ) ); + +// Now this update will be forced to go out +$dbw->update( 'site_stats', + array( 'ss_images' => $count ), + array( 'ss_row_id' => 1 ) ); + +?> \ No newline at end of file -- cgit v1.2.2