https://bugzilla.wikimedia.org/show_bug.cgi?id=24923

--- Comment #6 from Nahor <nahor.j+mediaw...@gmail.com> 2011-01-14 23:39:03 UTC 
---
Comment on attachment 7651
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=7651
REL1_16 patch


>+                      if( $wgCheckFileExtensions && $wgStrictFileExtensions ) 
>{
>+                              global $wgFileExtensions, 
>$wgAjaxUploadInterface;
>+                              $vars['wgFileExtensions'] = $wgFileExtensions;
>+                      }

if wgFileExtensions is not defined in JavaScript, it prevents the rest from
working like pre-filling the "destination filename" field.
You should set wgFileExtensions to NULL when wgCheckFileExtensions or
wgStrictFileExtensions are false.
    else {
        $vars['wgFileExtensions'] =  NULL;
    }

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to