From 63601400e476c6cf43d985f3e7b9864681695ed4 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 18 Jan 2013 16:46:04 +0100 Subject: Update to MediaWiki 1.20.2 this update includes: * adjusted Arch Linux skin * updated FluxBBAuthPlugin * patch for https://bugzilla.wikimedia.org/show_bug.cgi?id=44024 --- maintenance/refreshImageCount.php | 54 --------------------------------------- 1 file changed, 54 deletions(-) delete mode 100644 maintenance/refreshImageCount.php (limited to 'maintenance/refreshImageCount.php') diff --git a/maintenance/refreshImageCount.php b/maintenance/refreshImageCount.php deleted file mode 100644 index f9bdeea7..00000000 --- a/maintenance/refreshImageCount.php +++ /dev/null @@ -1,54 +0,0 @@ -mDescription = "Resets ss_image count, forcing slaves to pick it up."; - } - - public function execute() { - $dbw = wfGetDB( DB_MASTER ); - - // Load the current value from the master - $count = $dbw->selectField( 'site_stats', 'ss_images' ); - - $this->output( wfWikiID() . ": 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 ) ); - } -} - -$maintClass = "RefreshImageCount"; -require_once( RUN_MAINTENANCE_IF_MAIN ); - -- cgit v1.2.3-54-g00ecf