checkExtesnion => checkExtension
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 3 May 2008 13:39:10 +0000 (13:39 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 3 May 2008 13:39:10 +0000 (13:39 +0000)
includes/Title.php
includes/filerepo/File.php

index 83805e2..d5d315c 100644 (file)
@@ -2395,7 +2395,7 @@ class Title {
                                if( $nt->getNamespace() != NS_IMAGE ) {
                                        return 'imagenocrossnamespace';
                                }
-                               if( !File::checkExtesnionCompatibility( $file, $nt->getDbKey() ) ) {
+                               if( !File::checkExtensionCompatibility( $file, $nt->getDbKey() ) ) {
                                        return 'imagetypemismatch';
                                }
                        }
index 987564c..ade4a24 100644 (file)
@@ -95,7 +95,7 @@ abstract class File {
         * @param $old File Old file
         * @param $new string New name
         */
-       static function checkExtesnionCompatibility( File $old, $new ) {
+       static function checkExtensionCompatibility( File $old, $new ) {
                $oldMime = $old->getMimeType();
                $n = strrpos( $new, '.' );
                $newExt = self::normalizeExtension(