Add prependHTML() for extensions to avoid direct field calls
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 11 Aug 2008 14:20:37 +0000 (14:20 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 11 Aug 2008 14:20:37 +0000 (14:20 +0000)
includes/OutputPage.php

index a40e50e..f6bd91d 100644 (file)
@@ -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; }