diff options
-rw-r--r-- | inc/auth.php | 1 | ||||
-rw-r--r-- | inc/html.php | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/inc/auth.php b/inc/auth.php index 07f335627..bedc3877e 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -73,6 +73,7 @@ } //load ACL into a global array + global $AUTH_ACL; if(is_readable(DOKU_CONF.'acl.auth.php')){ $AUTH_ACL = file(DOKU_CONF.'acl.auth.php'); }else{ diff --git a/inc/html.php b/inc/html.php index f2ceceddd..8fb516598 100644 --- a/inc/html.php +++ b/inc/html.php @@ -1117,6 +1117,11 @@ function html_edit($text=null,$include='edit'){ //FIXME: include needed? <textarea name="wikitext" id="wiki__text" <?php echo $ro?> cols="80" rows="10" class="edit" tabindex="1"><?php echo "\n".formText($text)?></textarea> + <?php //bad and dirty event insert hook + $evdata = array('writable' => $wr); + trigger_event('HTML_EDITFORM_INJECTION', $evdata); + ?> + <div id="wiki__editbar"> <div id="size__ctl"></div> <?php if($wr){?> |