diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-09-16 02:05:15 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-09-16 02:05:15 +0200 |
commit | b7d5a5f06d3e336fcc46ccebff28de2b214996ad (patch) | |
tree | 99e869ec2e3bcd5df434f0f3499773e3f66e2625 | |
parent | 883bc121fd88d965cac7d206572f272b3e15ff51 (diff) | |
download | rpg-b7d5a5f06d3e336fcc46ccebff28de2b214996ad.tar.gz rpg-b7d5a5f06d3e336fcc46ccebff28de2b214996ad.tar.bz2 |
fix for previous pagetemplate event patch
Sorry, did mess up in testing the last patch.
darcs-hash:20060916000515-7ad00-3874991f9121ac80b2b3b66d4f5ac166702df1d1.gz
-rw-r--r-- | inc/common.php | 3 | ||||
-rw-r--r-- | inc/html.php | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/inc/common.php b/inc/common.php index cfff848f6..9e366e3fd 100644 --- a/inc/common.php +++ b/inc/common.php @@ -631,7 +631,8 @@ function rawWiki($id,$rev=''){ * * @author Andreas Gohr <andi@splitbrain.org> */ -function pageTemplate($id){ +function pageTemplate($data){ + $id = $data[0]; global $conf; global $INFO; $tpl = io_readFile(dirname(wikiFN($id)).'/_template.txt'); diff --git a/inc/html.php b/inc/html.php index 320bfcf67..fc99dfadb 100644 --- a/inc/html.php +++ b/inc/html.php @@ -1048,7 +1048,8 @@ function html_edit($text=null,$include='edit'){ //FIXME: include needed? } }else{ //try to load a pagetemplate - $text = trigger_event('HTML_EDIT_PAGETEMPLATE',array($ID),'pageTemplate',true); + $data = array($ID); + $text = trigger_event('HTML_EDIT_PAGETEMPLATE',$data,'pageTemplate',true); } }else{ $pr = true; //preview mode |