summaryrefslogtreecommitdiff
path: root/inc/io.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/io.php')
-rw-r--r--inc/io.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/inc/io.php b/inc/io.php
index dfdbc4e1c..6586a554e 100644
--- a/inc/io.php
+++ b/inc/io.php
@@ -1,4 +1,4 @@
-<?
+<?php
/**
* File IO functions
*
@@ -6,8 +6,9 @@
* @author Andreas Gohr <andi@splitbrain.org>
*/
- require_once("inc/common.php");
- require_once("inc/parser.php");
+ if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../').'/');
+ require_once(DOKU_INC.'inc/common.php');
+ require_once(DOKU_INC.'inc/parser.php');
/**
* Returns the parsed text from the given sourcefile. Uses cache