diff options
Diffstat (limited to 'inc/parserutils.php')
-rw-r--r-- | inc/parserutils.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/parserutils.php b/inc/parserutils.php index 5b0e802bc..ba8d8df36 100644 --- a/inc/parserutils.php +++ b/inc/parserutils.php @@ -27,7 +27,8 @@ function p_wiki_xhtml($id, $rev='', $excuse=true){ //ensure $id is in global $ID (needed for parsing) global $ID; - $ID = $id; + $keep = $ID; + $ID = $id; if($rev){ if(@file_exists($file)){ @@ -43,6 +44,9 @@ function p_wiki_xhtml($id, $rev='', $excuse=true){ } } + //restore ID (just in case) + $ID = $keep; + return $ret; } |