allow external clearing of mBodytext, without destroying OutputPage object,
authorDomas Mituzas <midom@users.mediawiki.org>
Mon, 13 Sep 2004 07:44:27 +0000 (07:44 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Mon, 13 Sep 2004 07:44:27 +0000 (07:44 +0000)
required for refreshLinks memory-efficient operation

includes/OutputPage.php

index c208e65..97a1b55 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- *
+ * $Id$
  * @package MediaWiki
  */
 
@@ -223,6 +223,7 @@ class OutputPage {
        function isQuickbarSuppressed() { return $this->mSuppressQuickbar; }
 
        function addHTML( $text ) { $this->mBodytext .= $text; }
+       function clearHTML() { $this->mBodytext = ''; }
        function debug( $text ) { $this->mDebugtext .= $text; }
 
        function setParserOptions( $options )