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

           Summary: SpecialUpload: protected $mComment breaks
                    SelectCategory extension
           Product: MediaWiki
           Version: 1.16.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Normal
         Component: Images and files
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: mediawiki-b...@cboltz.de
                CC: gpaum...@wikimedia.org, bryan.tongm...@gmail.com


It looks like SpecialUpload was reworked in 1.16. Unfortunately the upload
description is no longer available to other extensions (via hook).

This breaks the SelectCategory extension - the selected categories never end up
in the image:... page because SelectCategory can't add them to the upload
description. 

Therefore I propose the following patch:

Index: includes/specials/SpecialUpload.php
===================================================================
--- includes/specials/SpecialUpload.php (Revision 71214)
+++ includes/specials/SpecialUpload.php (Arbeitskopie)
@@ -31,7 +31,7 @@

        /** User input variables from the "description" section **/
        public    $mDesiredDestName;    // The requested target file name
-       protected $mComment;
+       public    $mComment;
        protected $mLicense;

        /** User input variables from the root section **/


If you want to fix this really backwards-compatible, there's another issue:
Older versions of Mediawiki used $m_pageObj->mUploadDescription   *)
In 1.16 it is named $m_pageObj->mComment.
Reverting this name change would be nice ;-)

*) $m_pageObj is the object passed over in the UploadForm:BeforeProcessing hook

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