Last modified: 2007-08-01 01:59:18 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 9575 - Accept upload description text from GET parameters
Accept upload description text from GET parameters
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-04-13 21:28 UTC by Andreas Hubel
Modified: 2007-08-01 01:59 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Andreas Hubel 2007-04-13 21:28:32 UTC
The idea is to move a line inside includes/SpecialUpload.php a few lines higher
to get URLs like
index.php?title=Special:Upload&wpUploadDescription=[[Category:Other Images]] working

includes/SpecialUpload.php: Line 45

        function UploadForm( &$request ) {
                global $wgAllowCopyUploads;
                $this->mDestFile          = $request->getText( 'wpDestFile' );
                $this->mUploadDescription = $request->getText(
'wpUploadDescription' ); // new postion

                if( !$request->wasPosted() ) {
                        # GET requests just give the main form; no data except
wpDestfile.
                        return;
                }

                # Placeholders for text injection by hooks (empty per default)
                $this->uploadFormTextTop = "";
                $this->uploadFormTextAfterSummary = "";

                $this->mIgnoreWarning     = $request->getCheck( 'wpIgnoreWarning' );
                $this->mReUpload          = $request->getCheck( 'wpReUpload' );
                $this->mUpload            = $request->getCheck( 'wpUpload' );

                $this->mUploadDescription = $request->getText(
'wpUploadDescription' ); // Old position
Comment 1 Rob Church 2007-08-01 01:59:18 UTC
Fixed back in r24324.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links