summaryrefslogtreecommitdiff
path: root/inc/common.php
diff options
context:
space:
mode:
authorchris <chris@jalakai.co.uk>2006-10-04 23:00:30 +0200
committerchris <chris@jalakai.co.uk>2006-10-04 23:00:30 +0200
commit6afe8dca1f7bd2a9ca21fb2dca6fef12ded423e1 (patch)
tree4de8037dd732f90f6bab5eb56ccc5bdb1c52bb59 /inc/common.php
parentb8a111f5605b82b5765cc4bde1826c7e1134c56e (diff)
downloadrpg-6afe8dca1f7bd2a9ca21fb2dca6fef12ded423e1.tar.gz
rpg-6afe8dca1f7bd2a9ca21fb2dca6fef12ded423e1.tar.bz2
update p_get/set_metadata to use $INFO['meta']
This patch updates p_get_metadata() to utilise the in memory copy copy of the current page's metadata ($INFO['meta']) when appropriate. The patch also updates p_set_metadata() to synchronise any changes to the current page's metadata with $INFO['meta']. $INFO hash is updated with two new elements: 'id' darcs-hash:20061004210030-9b6ab-7eab6f933a775fe350a1fb14d1118ea77d2db919.gz
Diffstat (limited to 'inc/common.php')
-rw-r--r--inc/common.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/common.php b/inc/common.php
index 88891af74..8b21c0585 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -56,6 +56,11 @@ function pageinfo(){
global $USERINFO;
global $conf;
+ // include ID & REV not redundant, as some parts of DokuWiki may temporarily change $ID, e.g. p_wiki_xhtml
+ // FIXME ... perhaps it would be better to ensure the temporary changes weren't necessary
+ $info['id'] = $ID;
+ $info['rev'] = $REV;
+
if($_SERVER['REMOTE_USER']){
$info['userinfo'] = $USERINFO;
$info['perm'] = auth_quickaclcheck($ID);