summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-02-24 01:04:07 -0800
committerAndreas Gohr <andi@splitbrain.org>2013-02-24 01:04:07 -0800
commit68b76ca345f473c237de5abc08653b44b7012f58 (patch)
tree8d6f74d1db1f080c383a6a497742f5865d396dcf /inc/template.php
parente0f88986cd037b43c3060cbada3d2df2b2231b84 (diff)
parent61efcda114414f2c35c1993c75bc95909282017f (diff)
downloadrpg-68b76ca345f473c237de5abc08653b44b7012f58.tar.gz
rpg-68b76ca345f473c237de5abc08653b44b7012f58.tar.bz2
Merge pull request #185 from splitbrain/FS#2724
FS#2724. fix 'are you sure' when using refresh after using tpl_actiondropdown
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/template.php b/inc/template.php
index e52158a53..415b56de7 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -1373,11 +1373,13 @@ function tpl_actiondropdown($empty = '', $button = '&gt;') {
global $REV;
global $lang;
- echo '<form action="'.DOKU_SCRIPT.'" method="post" accept-charset="utf-8">';
+ echo '<form action="'.DOKU_SCRIPT.'" method="get" accept-charset="utf-8">';
echo '<div class="no">';
echo '<input type="hidden" name="id" value="'.$ID.'" />';
if($REV) echo '<input type="hidden" name="rev" value="'.$REV.'" />';
- echo '<input type="hidden" name="sectok" value="'.getSecurityToken().'" />';
+ if ($_SERVER['REMOTE_USER']) {
+ echo '<input type="hidden" name="sectok" value="'.getSecurityToken().'" />';
+ }
echo '<select name="do" class="edit quickselect" title="'.$lang['tools'].'">';
echo '<option value="">'.$empty.'</option>';