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

@Florianschmidtwelzow I added in the below function, but it is not working, even this function is not calling for content. 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 = ''; }                               $text = "test--".$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; }               wfProfileOut( __METHOD__ ); //             echo ' ';print_r($content);die; return $content; }