File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -154,9 +154,6 @@ function onShowEnd() {
154154 $ app ->tpl ->setVar ("client_server_id " , $ options_mail_servers );
155155 unset($ options_mail_servers );
156156
157- $ csrf_token = $ app ->auth ->csrf_token_get ('mail_domain_del ' );
158- $ app ->tpl ->setVar ('_csrf_id ' , $ csrf_token ['csrf_id ' ]);
159- $ app ->tpl ->setVar ('_csrf_key ' , $ csrf_token ['csrf_key ' ]);
160157 }
161158
162159 /*
@@ -259,6 +256,10 @@ function onShowEnd() {
259256 $ app ->tpl ->setVar ('dkim_public ' , $ rec ['dkim_public ' ], true );
260257 if (!empty ($ rec ['dkim_public ' ])) $ app ->tpl ->setVar ('dns_record ' , $ dns_record , true );
261258
259+ $ csrf_token = $ app ->auth ->csrf_token_get ('mail_domain_del ' );
260+ $ app ->tpl ->setVar ('_csrf_id ' , $ csrf_token ['csrf_id ' ]);
261+ $ app ->tpl ->setVar ('_csrf_key ' , $ csrf_token ['csrf_key ' ]);
262+
262263 $ global_config = $ app ->getconf ->get_global_config ();
263264 $ app ->tpl ->setVar ('show_delete_on_forms ' , $ global_config ['misc ' ]['show_delete_on_forms ' ]);
264265
You can’t perform that action at this time.
0 commit comments