dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6317dc8
)
Add some hook HTML injection points to EditForm, between the Copyright warning and...
author
Andrew Garrett
<werdna@users.mediawiki.org>
Thu, 22 Oct 2009 13:54:36 +0000
(13:54 +0000)
committer
Andrew Garrett
<werdna@users.mediawiki.org>
Thu, 22 Oct 2009 13:54:36 +0000
(13:54 +0000)
includes/EditPage.php
patch
|
blob
|
history
diff --git
a/includes/EditPage.php
b/includes/EditPage.php
index
282307c
..
7d4fccd
100644
(file)
--- a/
includes/EditPage.php
+++ b/
includes/EditPage.php
@@
-83,6
+83,8
@@
class EditPage {
public $editFormTextAfterWarn;
public $editFormTextAfterTools;
public $editFormTextBottom;
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;
/* $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->editFormTextAfterWarn =
$this->editFormTextAfterTools =
$this->editFormTextBottom =
+ $this->editFormTextAfterContent =
+ $this->previewTextAfterContent =
$this->mPreloadText = "";
}
$this->mPreloadText = "";
}
@@
-1547,6
+1551,8
@@
END
END
);
$this->showTextbox1( $classes );
END
);
$this->showTextbox1( $classes );
+
+ $wgOut->addHTML( $this->editFormTextAfterContent );
$wgOut->wrapWikiMsg( "<div id=\"editpage-copywarn\">\n$1\n</div>", $copywarnMsg );
$wgOut->addHTML( <<<END
$wgOut->wrapWikiMsg( "<div id=\"editpage-copywarn\">\n$1\n</div>", $copywarnMsg );
$wgOut->addHTML( <<<END
@@
-1870,7
+1876,7
@@
END
$wgOut->parse( $note ) . $conflict . "</div>\n";
wfProfileOut( __METHOD__ );
$wgOut->parse( $note ) . $conflict . "</div>\n";
wfProfileOut( __METHOD__ );
- return $previewhead . $previewHTML;
+ return $previewhead . $previewHTML
. $this->previewTextAfterContent
;
}
function getTemplates() {
}
function getTemplates() {