From: Aaron Schulz Date: Mon, 11 Aug 2008 14:20:37 +0000 (+0000) Subject: Add prependHTML() for extensions to avoid direct field calls X-Git-Tag: 1.31.0-rc.0~45954 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=4dbd311aecc9b5070d43b3d04060d863f95ce360;p=lhc%2Fweb%2Fwiklou.git Add prependHTML() for extensions to avoid direct field calls --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index a40e50e0a9..f6bd91d170 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -393,6 +393,7 @@ class OutputPage { public function disallowUserJs() { $this->mAllowUserJs = false; } public function isUserJsAllowed() { return $this->mAllowUserJs; } + public function prependHTML( $text ) { $this->mBodytext = $text . $this->mBodytext; } public function addHTML( $text ) { $this->mBodytext .= $text; } public function clearHTML() { $this->mBodytext = ''; } public function getHTML() { return $this->mBodytext; }