Last modified: 2014-09-07 16:59:02 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 T72525, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70525 - Add hooks to make it possible for an extension to abort a page move
Add hooks to make it possible for an extension to abort a page move
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.24rc
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-07 15:48 UTC by Nathan Larson
Modified: 2014-09-07 16:59 UTC (History)
1 user (show)

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


Attachments

Description Nathan Larson 2014-09-07 15:48:51 UTC
Add hooks to make it possible for an extension to abort a page move. Probably there will be two hooks needed, one in SpecialMovepage.php's MovePageForm::doSubmit() and another in ApiMove::execute(). The move needs to be aborted before MovePageForm::doSubmit() deletes a target page to make way.
Comment 1 db [inactive,noenotif] 2014-09-07 16:51:02 UTC
There is a AbortMove hook - https://www.mediawiki.org/wiki/Manual:Hooks/AbortMove
Comment 2 Nathan Larson 2014-09-07 16:59:02 UTC
Ouch, that was some inadequate research on my part. Thanks for the heads up.

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


Navigation
Links