3 // Quickie hack; patch-ss_images.sql uses variables which don't
6 require_once( "commandLine.inc" );
8 $dbw =& wfGetDB( DB_MASTER
);
9 $count = $dbw->selectField( 'image', 'COUNT(*)' );
11 echo "$wgDBname: setting ss_images to $count\n";
12 $dbw->update( 'site_stats',
13 array( 'ss_images' => $count ),
14 array( 'ss_row_id' => 1 ) );