Skip to content
Snippets Groups Projects
Commit bced4159 authored by Adrian Lang's avatar Adrian Lang
Browse files

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.
parent 731ae652
No related branches found
Tags develsnap_2007-06-01
No related merge requests found
......@@ -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'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment