diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2007-09-14 13:18:58 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2007-09-14 13:18:58 +0200 |
commit | 8f416baead93a48e5799e44b8bd2e2c4859f4e04 (patch) | |
tree | cd47ac55eb80a39e3225e8b4f3161b88ea16c2cf /maintenance/cleanupImages.php | |
parent | d7d08bd1a17618c7d77a6b9b2989e9f7293d6ed6 (diff) |
auf Version 1.11 aktualisiert; Login-Bug behoben
Diffstat (limited to 'maintenance/cleanupImages.php')
-rw-r--r-- | maintenance/cleanupImages.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/maintenance/cleanupImages.php b/maintenance/cleanupImages.php index 3ec2c443..1c0edeb5 100644 --- a/maintenance/cleanupImages.php +++ b/maintenance/cleanupImages.php @@ -89,7 +89,10 @@ class ImageCleanup extends TableCleanup { } function filePath( $name ) { - return wfImageDir( $name ) . "/$name"; + if ( !isset( $this->repo ) ) { + $this->repo = RepoGroup::singleton()->getLocalRepo(); + } + return $this->repo->getRootDirectory() . '/' . $this->repo->getHashPath( $name ) . $name; } function pokeFile( $orig, $new ) { @@ -164,4 +167,4 @@ $wgUser->setName( 'Conversion script' ); $caps = new ImageCleanup( !isset( $options['fix'] ) ); $caps->cleanup(); -?> + |