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

       Web browser: ---
            Bug ID: 55366
           Summary: TimedMediaHandler breaks UploadWizard if
                    $wgFileExtensions redefined...
           Product: MediaWiki extensions
           Version: REL1_21 branch
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: UploadWizard
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: kel...@kiwix.org
                CC: bawolff...@gmail.com, fflo...@wikimedia.org,
                    mtrac...@member.fsf.org, nischay...@gmail.com
    Classification: Unclassified
   Mobile Platform: ---

In your LocalSettings.php, if you configure things in the following order:
1 - require_once("$IP/extensions/UploadWizard/UploadWizard.php");
2 - require_once("$IP/extensions/TimedMediaHandler/TimedMediaHandler.php");
3 - $wgFileExtensions = array_merge( $wgFileExtensions, array( 'doc', 'docx' )
);

Then, you won't be able to use the UploadWizard *at all*. If will always fail
with the following javascript error:
This wiki does not accept filenames that end in the extension ".xxx".

If you change $wgFileExtensions before requiring TimedMediaHandler.php, then it
works like a charm.

MediaWiki     1.21.2
PHP     5.3.10-1ubuntu3.8 (fpm-fcgi)
MySQL     5.5.28-0ubuntu0.12.04.2
Upload Wizard (Version 1.3)
TimedMediaHandler (Version 0.3)

-- 
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