summaryrefslogtreecommitdiff
path: root/doku.php
diff options
context:
space:
mode:
authorAdrian Lang <dokuwiki@adrianlang.de>2011-01-14 23:32:29 +0100
committerAdrian Lang <dokuwiki@adrianlang.de>2011-01-14 23:32:29 +0100
commitbced4159c8c5f1b4da2e98b2242c2ec1c09ec74e (patch)
tree2d1da8c79d32f18b74b27ee7a148c49937ad9fdb /doku.php
parent731ae6527af8e2b8cdb211aecac260988e8379e9 (diff)
downloadrpg-bced4159c8c5f1b4da2e98b2242c2ec1c09ec74e.tar.gz
rpg-bced4159c8c5f1b4da2e98b2242c2ec1c09ec74e.tar.bz2
Deprecate $NS in doku.php
$NS is only used in lib/exe/{ajax,mediamanager}.php when no $ID context is present. The two functions which use $NS in inc/template.php are only called through those both endpoints, not through doku.php. In doku.php, $ID is the only correct value, $NS is not kept synchronous with $ID. Use getNS($ID) in functions which are called through doku.php.
Diffstat (limited to 'doku.php')
-rw-r--r--doku.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/doku.php b/doku.php
index 816acd3da..b0312fb25 100644
--- a/doku.php
+++ b/doku.php
@@ -30,7 +30,10 @@ $old = error_reporting(E_ALL ^ E_NOTICE);
//import variables
$QUERY = trim($_REQUEST['id']);
$ID = getID();
+
+// deprecated 2011-01-14
$NS = getNS($ID);
+
$REV = $_REQUEST['rev'];
$IDX = $_REQUEST['idx'];
$DATE = $_REQUEST['date'];