initialize Profiler instance singleton with ProfilerStub if 'bogus' is detected,...
[lhc/web/wiklou.git] / maintenance / rebuildImages.php
index 1848b10..601bfff 100644 (file)
 require_once( dirname( __FILE__ ) . '/Maintenance.php' );
 
 class ImageBuilder extends Maintenance {
+
+       /**
+        * @var DatabaseBase
+        */
+       protected $dbw;
+
        function __construct() {
                parent::__construct();
 
+               global $wgUpdateCompatibleMetadata;
+               //make sure to update old, but compatible img_metadata fields.
+               $wgUpdateCompatibleMetadata = true;
+
                $this->mDescription = 'Script to update image metadata records';
 
                $this->addOption( 'missing', 'Check for files without associated database record' );