X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=lib%2Fcontact.php;h=de4dc8254821d753b8acc6ef28aaffb388de5752;hb=37d4290c9eae09546c22b257c589c7e66ad3a1f3;hp=b33c97a1f66d2dcd240726510a6e04a4fb50af45;hpb=b967de0fef7828e7cf314104ddd147394efb0060;p=readifood.git diff --git a/lib/contact.php b/lib/contact.php index b33c97a..de4dc82 100644 --- a/lib/contact.php +++ b/lib/contact.php @@ -263,7 +263,7 @@ /* Postcode. */ echo "
You must confirm deletion of contact " . $contact->getDisplayname() . ": " . $contact->getDeleteLink(true) . "
\n"; + } + function delete_contact($name, $id = null, &$city_id = null) { if (! check_admin(1, "delete a contact")) return; @@ -558,6 +569,10 @@ if (count($args)) { switch ($args[0]) { case "delete": + confirm_delete_contact($name, $id); + break; + + case "confirmdelete": delete_contact($name, $id); break; }