summaryrefslogtreecommitdiff
path: root/doku.php
diff options
context:
space:
mode:
authorAndreas Gohr <gohr@cosmocode.de>2014-12-17 13:14:02 +0100
committerAndreas Gohr <gohr@cosmocode.de>2014-12-17 13:14:02 +0100
commit90394abd2d0fc66a994a3f81c76e265d0707b351 (patch)
tree6567a5f6bfce47bfed8e64c15a4ddb04e40d4f24 /doku.php
parent59cf47bd6e911707e894a1700828278bc8a6239a (diff)
downloadrpg-90394abd2d0fc66a994a3f81c76e265d0707b351.tar.gz
rpg-90394abd2d0fc66a994a3f81c76e265d0707b351.tar.bz2
fix global environment during test requests
Diffstat (limited to 'doku.php')
-rw-r--r--doku.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/doku.php b/doku.php
index 7cb92cffa..f5aa6cfa4 100644
--- a/doku.php
+++ b/doku.php
@@ -15,6 +15,11 @@ $updateVersion = 47;
if(!defined('DOKU_INC')) define('DOKU_INC', dirname(__FILE__).'/');
+// define all DokuWiki globals here (needed within test requests but also helps to keep track)
+global $ACT, $INPUT, $QUERY, $ID, $REV, $DATE_AT, $IDX,
+ $DATE, $RANGE, $HIGH, $TEXT, $PRE, $SUF, $SUM, $INFO, $JSINFO;
+
+
if(isset($_SERVER['HTTP_X_DOKUWIKI_DO'])) {
$ACT = trim(strtolower($_SERVER['HTTP_X_DOKUWIKI_DO']));
} elseif(!empty($_REQUEST['idx'])) {