From: Bryan Tong Minh Date: Sat, 3 May 2008 13:39:10 +0000 (+0000) Subject: checkExtesnion => checkExtension X-Git-Tag: 1.31.0-rc.0~47932 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=cfb420dd4085445acf5d26e7ed9fa69748221c21;p=lhc%2Fweb%2Fwiklou.git checkExtesnion => checkExtension --- 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(