[ewiki] plugins/admin/control broken when using explicit action= style links
- From: Matthijs Kooijman <m.kooijman@xxxxxxxxxxxxxxxxxx>
- To: ewiki@xxxxxxxxxxxxx
- Date: Wed, 14 Jun 2006 01:35:19 +0200
Hey,
the control plugin breaks when using explicit action= links. In this case, the
action should not be in the "id" request parameter, which gets handled by
ewiki_script ok.
control uses ewiki_script to build the "action" form
attribute, so the id and action get passed on like they should. Yet, control
adds another, extra "id" hidden field, which overwrites the id in the action
string. This field explicitely includes the action, which is not supposed to
happen when EWIKI_USE_ACTION_PARAM = 2
Simply removing this hidden fields should fix the problem in all cases. It
works for me.
On a sidenote, if you replace the line
$o .= "This page was correctly renamed from '$old_id' to '$new_id'.<br
/><br />\n$report";
by
$o .= "This page was correctly renamed from '" . ewiki_link($old_id) .
"' to '" . ewiki_link($new_id) . "'.<br /><br />\n$report";
You get nicer and clickable output after renaming.
Gr.
Matthijs
Other related posts:
- » [ewiki] plugins/admin/control broken when using explicit action= style links