function __construct() { parent::__construct(); $variants = array('gan', 'gan-hans', 'gan-hant'); $variantfallbacks = array('gan' => array('gan-hans', 'gan-hant'), 'gan-hans' => array('gan'), 'gan-hant' => array('gan')); $ml = array('gan' => 'disable'); $this->mConverter = new GanConverter($this, 'gan', $variants, $variantfallbacks, array(), $ml); }
function __construct() { parent::__construct(); $variants = ['gan', 'gan-hans', 'gan-hant']; $variantfallbacks = ['gan' => ['gan-hans', 'gan-hant'], 'gan-hans' => ['gan'], 'gan-hant' => ['gan']]; $ml = ['gan' => 'disable']; $this->mConverter = new GanConverter($this, 'gan', $variants, $variantfallbacks, [], $ml); }
function __construct() { parent::__construct(); $variants = array('gan', 'gan-hans', 'gan-hant'); $variantfallbacks = array('gan' => array('gan-hans', 'gan-hant'), 'gan-hans' => array('gan'), 'gan-hant' => array('gan')); $ml = array('gan' => 'disable'); $this->mConverter = new GanConverter($this, 'gan', $variants, $variantfallbacks, array(), $ml); $wgHooks['ArticleSaveComplete'][] = $this->mConverter; }