summaryrefslogtreecommitdiff
path: root/lib/plugins/info
diff options
context:
space:
mode:
authorchris <chris@jalakai.co.uk>2006-04-10 01:38:41 +0200
committerchris <chris@jalakai.co.uk>2006-04-10 01:38:41 +0200
commite04f1f162ee7d5abb22d29834ecf410602759b95 (patch)
tree113aa47e9a7b53b3aac6a5095b387bf9e3f002b9 /lib/plugins/info
parent8fda456959075c35de4fd883709873b131da2aa2 (diff)
downloadrpg-e04f1f162ee7d5abb22d29834ecf410602759b95.tar.gz
rpg-e04f1f162ee7d5abb22d29834ecf410602759b95.tar.bz2
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/info')
-rw-r--r--lib/plugins/info/syntax.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/plugins/info/syntax.php b/lib/plugins/info/syntax.php
index d5209397f..b93ef4887 100644
--- a/lib/plugins/info/syntax.php
+++ b/lib/plugins/info/syntax.php
@@ -5,9 +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_PLUGIN.'syntax.php');