diff options
author | Andreas Gohr <andi@splitbrain.org> | 2009-11-23 18:55:46 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2009-11-23 18:55:46 +0100 |
commit | 72e0dc37715be44ccf530757864c745c5cb90606 (patch) | |
tree | 3565d50c21b8f0ff094379ebcc8a2cceabfb928e /doku.php | |
parent | 07a8e691a67d5a3867cc267b6c281784748c1055 (diff) | |
download | rpg-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.php | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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(); |