r50380 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50379‎ | r50380 | r50381 >
Date:19:45, 9 May 2009
Author:j
Status:deferred
Tags:
Comment:
replace extension Case-insensitive
Modified paths:
  • /trunk/extensions/MetavidWiki/skins/mv_embed/libAddMedia/mvFirefogg.js (modified) (history)

Diff [purge]

Index: trunk/extensions/MetavidWiki/skins/mv_embed/libAddMedia/mvFirefogg.js
@@ -131,8 +131,9 @@
132132 ext == 'mpeg' || ext == 'mpeg2' || ext == 'mpeg4' ||
133133 ext == 'dv' || ext=='wmv' ){
134134 //hide ogg warning
135 - $j('#wgfogg_waring_ogg_upload').hide();
136 - sf = sf.replace( ext, 'ogg' );
 135+ $j('#wgfogg_waring_ogg_upload').hide();
 136+ var extreg = new RegExp(ext + '$', 'i');
 137+ sf = sf.replace(extreg, 'ogg');
137138 $j('#wpDestFile').val( sf );
138139 }else{
139140 //not video extension error:

Status & tagging log