From 8f416baead93a48e5799e44b8bd2e2c4859f4e04 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 14 Sep 2007 13:18:58 +0200 Subject: auf Version 1.11 aktualisiert; Login-Bug behoben --- maintenance/cleanupImages.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'maintenance/cleanupImages.php') 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(); -?> + -- cgit v1.2.2