From: Andrew Garrett Date: Thu, 22 Oct 2009 13:54:36 +0000 (+0000) Subject: Add some hook HTML injection points to EditForm, between the Copyright warning and... X-Git-Tag: 1.31.0-rc.0~39185 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=d83d14837120a4c98a521109c4314c1263ff8282;p=lhc%2Fweb%2Fwiklou.git Add some hook HTML injection points to EditForm, between the Copyright warning and the content, and after the preview content. --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 282307cc68..7d4fccd986 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -83,6 +83,8 @@ class EditPage { public $editFormTextAfterWarn; public $editFormTextAfterTools; public $editFormTextBottom; + public $editFormTextAfterContent; + public $previewTextAfterContent; /* $didSave should be set to true whenever an article was succesfully altered. */ public $didSave = false; @@ -106,6 +108,8 @@ class EditPage { $this->editFormTextAfterWarn = $this->editFormTextAfterTools = $this->editFormTextBottom = + $this->editFormTextAfterContent = + $this->previewTextAfterContent = $this->mPreloadText = ""; } @@ -1547,6 +1551,8 @@ END END ); $this->showTextbox1( $classes ); + + $wgOut->addHTML( $this->editFormTextAfterContent ); $wgOut->wrapWikiMsg( "
\n$1\n
", $copywarnMsg ); $wgOut->addHTML( <<parse( $note ) . $conflict . "\n"; wfProfileOut( __METHOD__ ); - return $previewhead . $previewHTML; + return $previewhead . $previewHTML . $this->previewTextAfterContent; } function getTemplates() {