Thread:Project:Support desk/Pagecontent Help/reply (10)

@Florianschmidtwelzow thanx lot for ur response, you are only my hope to fix this issue. still no chance, it is not working

protected function getContentObject { wfProfileIn( __METHOD__ ); if ( $this->mPage->getID === 0 ) { # If this is a MediaWiki:x message, then load the messages # and return the message value for x.                       if ( $this->getTitle->getNamespace == NS_MEDIAWIKI ) { $text = $this->getTitle->getDefaultMessageText; if ( $text === false ) { $text = ''; }                                $content = ContentHandler::makeContent( $text, $this->getTitle ); } else { $message = $this->getContext->getUser->isLoggedIn ? 'noarticletext' : 'noarticletextanon'; $content = new MessageContent( $message, null, 'parsemag' ); }               } else { $this->fetchContentObject; $content = $this->mContentObject; }

#******* CUSTOM CODE START************* $text = ContentHandler::getContentText( $content ); $newText = 'preContent'. $text. 'postContent'; $content = ContentHandler::makeContent( $newText, $this->getTitle ); #******* CUSTOM CODE END************* wfProfileOut( __METHOD__ ); return $content; }