summaryrefslogtreecommitdiff
path: root/doku.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2009-11-23 18:55:46 +0100
committerAndreas Gohr <andi@splitbrain.org>2009-11-23 18:55:46 +0100
commit72e0dc37715be44ccf530757864c745c5cb90606 (patch)
tree3565d50c21b8f0ff094379ebcc8a2cceabfb928e /doku.php
parent07a8e691a67d5a3867cc267b6c281784748c1055 (diff)
downloadrpg-72e0dc37715be44ccf530757864c745c5cb90606.tar.gz
rpg-72e0dc37715be44ccf530757864c745c5cb90606.tar.bz2
Replaced $INFO export with minimal $JSINFO
Ignore-this: 3f1213cb6b403ad09e6999cd972e9f21 Now only the global $JSINFO array is exported to JavaScript. Additional keys can be added here from plugins or preload. darcs-hash:20091123175546-7ad00-346856e8eecc52608edea805f408d4dbd33257fe.gz
Diffstat (limited to 'doku.php')
-rw-r--r--doku.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/doku.php b/doku.php
index 519e1b13e..891ac4c17 100644
--- a/doku.php
+++ b/doku.php
@@ -50,6 +50,13 @@ $REV = preg_replace('/[^0-9]/','',$REV);
//make infos about the selected page available
$INFO = pageinfo();
+//export minimal infos to JS, plugins can add more
+$JSINFO = array(
+ 'id' => $ID,
+ 'namespace' => (string) $INFO['namespace']
+);
+
+
// handle debugging
if($conf['allowdebug'] && $ACT == 'debug'){
html_debug();