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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T11575, the corresponding Phabricator task for complete and up-to-date bug report information.
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