summaryrefslogtreecommitdiff
path: root/lib/plugins/admin.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plugins/admin.php')
-rw-r--r--lib/plugins/admin.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/plugins/admin.php b/lib/plugins/admin.php
index 480fc07dd..7245a73eb 100644
--- a/lib/plugins/admin.php
+++ b/lib/plugins/admin.php
@@ -5,7 +5,9 @@
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Christopher Smith <chris@jalakai.co.uk>
*/
-if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/');
+// must be run within Dokuwiki
+if(!defined('DOKU_INC')) die();
+
if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
/**