+
+ function replaceContent( $text, $comment = "" )
+ {
+ $this->mContent = $text;
+ $this->mComment = $comment;
+ $this->mTimestamp = wfTimestampNow();
+ return $this->saveContent();
+ }
+
+ function showAsDisabledPage( $rawhtml = true )
+ {
+ global $wgLang, $wgOut;
+ $wgOut->checkLastModified( $this->getTimestamp() );
+ $func = ( $rawhtml ? "addHTML" : "addWikiText" );
+ $wgOut->$func(
+ "<p>" . wfMsg( "perfdisabled" ) . "</p>\n\n" .
+ "<p>" . wfMsg( "perfdisabledsub", $wgLang->timeanddate( $this->getTimestamp() ) ) . "</p>\n\n" .
+ "<hr />\n\n" .
+ $this->getContent()
+ );
+ return;
+
+ }