function __construct($page, &$parser) { global $tikilib, $prefs; $this->page = $this->description = $page; $this->parser =& $parser; $this->namespaceSeparator = $prefs['namespace_separator']; if ($prefs['feature_multilingual'] == 'y' && isset($GLOBALS['pageLang'])) { $this->language = $GLOBALS['pageLang']; } // Fetch all externals once if (false === self::$externals) { self::$externals = $tikilib->fetchMap('SELECT LOWER(`name`), `extwiki` FROM `tiki_extwiki`'); } $this->info = $this->findWikiPage(); }