Last modified: 2011-07-29 13:52:26 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 T32114, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30114 - Need hook in EditPage.php after content is loaded
Need hook in EditPage.php after content is loaded
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-07-29 13:38 UTC by Christian Neubauer
Modified: 2011-07-29 13:52 UTC (History)
0 users

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


Attachments

Description Christian Neubauer 2011-07-29 13:38:21 UTC
I need a hook to modify the content of an article before it is displayed in the edit box.  The best place for this would be in EditPage->getContent() right after the call to $this->mArticle->getContent().  The hooks inside Article->getContent() are not good enough since that function is called all over the place and not just on edit.

Something like this:

wfRunHooks( 'EditPageAfterFetchContent', array( &$this, &$text ) ) ;

This would allow an extension to modify content before it is edited or load additional metadata or whatever associated with the revision being edited.
Comment 1 Christian Neubauer 2011-07-29 13:52:26 UTC
Forget it.  I can use another hook way later in execution.

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


Navigation
Links