1
0

propagate token_url for js-initiated form-actions like ML-rename

This commit is contained in:
onli
2013-06-18 22:21:22 +02:00
parent a52e05598b
commit 637a75f0fc
2 changed files with 3 additions and 2 deletions

@ -114,7 +114,8 @@ function serendipity_plugin_api_pre_event_hook($event, &$bag, &$eventData, &$add
case 'external_plugin':
switch ($eventData) {
case 'admin/serendipity_editor.js':
echo serendipity_smarty_show('admin/serendipity_editor.js.tpl');
$data = array('token_url' => serendipity_setFormToken("url"));
echo serendipity_smarty_show('admin/serendipity_editor.js.tpl', $data);
break;
}
return true;