Topic on Extension talk:Maps

Clashes with old extensions

1
Vicarage (talkcontribs)

I found with mediawiki 1.35 that old extensions like SimpleTable would stop Maps working, it would just display the raw tags. The problem was code like

   public function __construct() { 
       global $wgParser; 
       $wgParser->setHook('tab', array(&$this, 'hookTab')); 
   }

or
   public function __construct() {
     $parser = MediaWikiServices::getInstance()->getParser();
     $parser->setHook('tab', array(&$this, 'hookTab'));
   }

Rewriting that extension to use extension.json and the advice in Manual:Tag extensions (as here) got it working with Maps. If people see other clashes, they might want to adopt the same approach.

Reply to "Clashes with old extensions"