Last modified: 2011-07-05 12:48:57 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 T7800, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 5800 - Feature request on hook 'EditPage::showEditForm:initial'
Feature request on hook 'EditPage::showEditForm:initial'
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
1.6.x
PC All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-05-02 22:44 UTC by BenediktM
Modified: 2011-07-05 12:48 UTC (History)
2 users (show)

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


Attachments

Description BenediktM 2006-05-02 22:44:27 UTC
The parameter $formCallback of the function EditPage.php->showEditForm(
$formCallback = null ) can not be set via the hook
'EditPage::showEditForm:initial'. So please change the line 

"wfRunHooks( 'EditPage::showEditForm:initial', array( &$this ) ) ;"

to

"wfRunHooks( 'EditPage::showEditForm:initial', array( &$this, $formCallback ) ) ;"

With this it would be easier to add something to the EditForm instead of
changing the whole page.

Thanks,
 Benedikt
Comment 1 BenediktM 2006-05-02 23:04:23 UTC
sorry, line should be changed to

"wfRunHooks( 'EditPage::showEditForm:initial', array( &$this, &$formCallback ) ) ;"

Should be a reference to $formCallback.

Regards,
 Benedikt
Comment 2 Chad H. 2011-07-05 12:48:57 UTC
Done in r91453.

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


Navigation
Links