if( $nt->getNamespace() != NS_IMAGE ) {
return 'imagenocrossnamespace';
}
- if( !File::checkExtesnionCompatibility( $file, $nt->getDbKey() ) ) {
+ if( !File::checkExtensionCompatibility( $file, $nt->getDbKey() ) ) {
return 'imagetypemismatch';
}
}
* @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(