From c591aabe4bfdea879a1804e525b40a697ba9afce Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 11 Nov 2005 21:01:42 +0100 Subject: JavaScript Fixes for the toolbar #628 darcs-hash:20051111200142-7ad00-158925aee01bc24378a8bd99ad27a6173ea085dd.gz --- inc/template.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'inc/template.php') diff --git a/inc/template.php b/inc/template.php index 71bb64b4c..9fee928ae 100644 --- a/inc/template.php +++ b/inc/template.php @@ -201,9 +201,17 @@ function tpl_metaheaders(){ // load javascript $js_edit = ($ACT=='edit' || $ACT=='preview') ? 1 : 0; $js_write = ($INFO['writable']) ? 1 : 0; - $js_sig = ($conf['useacl'] && $_SERVER['REMOTE_USER']) ? 1 : 0; + if($js_edit && $js_write){ + ptln('',$it); + } ptln('',$it); + DOKU_BASE.'lib/exe/js.php?edit='.$js_edit.'&write='.$js_write.'">',$it); } /** -- cgit v1.2.3