From cfb420dd4085445acf5d26e7ed9fa69748221c21 Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Sat, 3 May 2008 13:39:10 +0000 Subject: [PATCH] checkExtesnion => checkExtension --- includes/Title.php | 2 +- includes/filerepo/File.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index 83805e2895..d5d315c88c 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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'; } } diff --git a/includes/filerepo/File.php b/includes/filerepo/File.php index 987564cdfd..ade4a245c3 100644 --- a/includes/filerepo/File.php +++ b/includes/filerepo/File.php @@ -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( -- 2.20.1