summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/common.php3
-rw-r--r--inc/html.php3
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