diff --git a/syntax/table.php b/syntax/table.php index 860e490..fe1e068 100644 --- a/syntax/table.php +++ b/syntax/table.php @@ -6,18 +6,12 @@ * @author Andreas Böhler */ -// must be run within Dokuwiki -if(!defined('DOKU_INC')) die(); - -if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); -require_once(DOKU_PLUGIN.'syntax.php'); - class syntax_plugin_davcal_table extends DokuWiki_Syntax_Plugin { protected $hlp = null; // Load the helper plugin - public function syntax_plugin_davcal_table() { + public function __construct() { $this->hlp =& plugin_load('helper', 'davcal'); }