diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-12-03 13:29:22 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-12-03 13:29:22 +0100 |
commit | ca32f08966f1b51fcb19460f0996bb0c4048e6fe (patch) | |
tree | ec04cc15b867bc21eedca904cea9af0254531a11 /maintenance/rebuildImages.php | |
parent | a22fbfc60f36f5f7ee10d5ae6fe347340c2ee67c (diff) |
Update to MediaWiki 1.18.0
* also update ArchLinux skin to chagnes in MonoBook
* Use only css to hide our menu bar when printing
Diffstat (limited to 'maintenance/rebuildImages.php')
-rw-r--r-- | maintenance/rebuildImages.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/maintenance/rebuildImages.php b/maintenance/rebuildImages.php index c61d9480..17111831 100644 --- a/maintenance/rebuildImages.php +++ b/maintenance/rebuildImages.php @@ -33,9 +33,19 @@ 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' ); @@ -57,6 +67,9 @@ class ImageBuilder extends Maintenance { } } + /** + * @return FileRepo + */ function getRepo() { if ( !isset( $this->repo ) ) { $this->repo = RepoGroup::singleton()->getLocalRepo(); |