fixed successive extension stripping
authorDaniel Kinzler <daniel@users.mediawiki.org>
Tue, 2 Dec 2008 11:19:35 +0000 (11:19 +0000)
committerDaniel Kinzler <daniel@users.mediawiki.org>
Tue, 2 Dec 2008 11:19:35 +0000 (11:19 +0000)
maintenance/importImages.inc.php

index 3d9d08f..290f3c0 100644 (file)
@@ -77,7 +77,7 @@ function findAuxFile( $file, $auxExtension, $maxStrip = 1 ) {
                        return $f;
                }
 
-               $idx = strpos( $n, '.' );
+               $idx = strrpos( $n, '.' );
                if ( !$idx ) break;
 
                $n = substr( $n, 0, $idx );