Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -774,12 +774,13 @@ |
775 | 775 | return value is ignored (should always return true) |
776 | 776 | |
777 | 777 | 'EditPage::showEditForm:fields': allows injection of form field into edit form |
778 | | -&$editor: the EditPage instance for reference |
779 | | -&$out: an OutputPage instance to write to |
| 778 | +$editor: the EditPage instance for reference |
| 779 | +$out: an OutputPage instance to write to |
780 | 780 | return value is ignored (should always return true) |
781 | 781 | |
782 | 782 | 'EditPage::showEditForm:initial': before showing the edit form |
783 | 783 | $editor: EditPage instance (object) |
| 784 | +$out: an OutputPage instance to write to |
784 | 785 | |
785 | 786 | Return false to halt editing; you'll need to handle error messages, etc. |
786 | 787 | yourself. Alternatively, modifying $error and returning true will cause the |
Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -1732,7 +1732,7 @@ |
1733 | 1733 | $previewOutput = $this->getPreviewText(); |
1734 | 1734 | } |
1735 | 1735 | |
1736 | | - wfRunHooks( 'EditPage::showEditForm:initial', array( &$this ) ); |
| 1736 | + wfRunHooks( 'EditPage::showEditForm:initial', array( &$this, &$wgOut ) ); |
1737 | 1737 | |
1738 | 1738 | $this->setHeaders(); |
1739 | 1739 | |