/** * for backward compatability * @see inc/DokuWiki_Plugin#getInfo() */ function getInfo() { if (method_exists(parent, 'getInfo')) { $info = parent::getInfo(); } return is_array($info) ? $info : confToHash(dirname(__FILE__) . '/plugin.info.txt'); }
/** * return some info */ function getInfo() { $a = ''; if (method_exists(DokuWiki_Admin_Plugin, "getInfo")) { $a = parent::getInfo(); /// this will grab the data from the plugin.info.txt $a['name'] = 'LaTeX plugin administration'; return $a; } else { // Otherwise return some hardcoded data for old dokuwikis return array('author' => 'Alexander Kraus, Michael Boyle, and Mark Lundeberg)', 'email' => '.', 'date' => '???', 'name' => 'LaTeX plugin', 'desc' => 'LaTeX rendering plugin; requires LaTeX, dvips, ImageMagick.', 'url' => 'http://www.dokuwiki.org/plugin:latex'); } }
/** * return some info */ function getInfo(){ $result = parent::getInfo(); $result['desc'] = $this->getLang('desc'); return $result; }