diff options
author | chris <chris@jalakai.co.uk> | 2006-04-10 01:38:41 +0200 |
---|---|---|
committer | chris <chris@jalakai.co.uk> | 2006-04-10 01:38:41 +0200 |
commit | e04f1f162ee7d5abb22d29834ecf410602759b95 (patch) | |
tree | 113aa47e9a7b53b3aac6a5095b387bf9e3f002b9 /lib/plugins/syntax.php | |
parent | 8fda456959075c35de4fd883709873b131da2aa2 (diff) | |
download | dokuwiki-e04f1f162ee7d5abb22d29834ecf410602759b95.tar.gz dokuwiki-e04f1f162ee7d5abb22d29834ecf410602759b95.zip |
Bug#680
Update default plugins to ensure they exit immediately
if not called from within Dokuwiki
darcs-hash:20060409233841-9b6ab-555e4fced756849a5d7b9de6e4aaaea24c6da3ae.gz
Diffstat (limited to 'lib/plugins/syntax.php')
-rw-r--r-- | lib/plugins/syntax.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/plugins/syntax.php b/lib/plugins/syntax.php index 9918e552a..e5e6204c4 100644 --- a/lib/plugins/syntax.php +++ b/lib/plugins/syntax.php @@ -5,8 +5,9 @@ * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) * @author Andreas Gohr <andi@splitbrain.org> */ +// must be run within Dokuwiki +if(!defined('DOKU_INC')) die(); -if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../').'/'); if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); require_once(DOKU_INC.'inc/parser/parser.php'); |