Topic on Extension talk:Realnames

Jump to navigation Jump to search

Not working on body if username is not a link

1
Loic.tessier (talkcontribs)

Hello,


My topic is not relevant as a problem but as a tip :

In RealNames.body.php, it seems that a function is never call : "lookForBare"


I just add the line underlined below:

if ( $GLOBALS['wgRealnamesReplacements']['body'] === true ) {
                       // article html text
                       self::debug( __METHOD__, 'searching article body...' );
                       $out->mBodytext = self::lookForLinks( $out->getHTML() );
+                       $out->mBodytext = self::lookForBare ( $out->getHTML() );
               }

and then, username will be translate in RealName even if there is no link.

Reply to "Not working on body if username is not a link"