[dokuwiki] Re: Question about global $NS in the development version

  • From: Adrian Lang <dokuwiki@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Fri, 14 Jan 2011 23:40:28 +0100

Hi all,

I deprecated $NS in doku.php [1] according to this discussion. $NS is
exclusively used in inc/template.php in two functions which are in turn
only called through lib/exe/{ajax,mediamanager}.php endpoints where $NS
is actually set and meaningful (as opposed to $ID which is missing in
those contexts). We might consider using global $ID = $NS . ':' .
$conf['start'] or global $ID = $NS . ':' instead of $NS to be more
consistent, but the mediamanager apparently uses a different set of
globals anyway.

[1] https://github.com/splitbrain/dokuwiki/commit/bced4159c

Regards,
Adrian

Other related posts: