logging the delete
authorToby Elliott <telliott@mozilla.com>
Mon, 11 May 2009 13:52:50 -0700
changeset 925 e6863bfef93bc558da1164e4561c7f5f86985048
parent 924 4bc181414ba83b4303f7cec19dcc9c733838a3ab
child 926 21ccedb2590f2b1cf94cbb1b8a6eec7097c6433b
push id566
push usertelliott@mozilla.com
push dateMon, 11 May 2009 20:52:55 +0000
logging the delete
server/delete_persona.php
--- a/server/delete_persona.php
+++ b/server/delete_persona.php
@@ -66,16 +66,17 @@
 		echo "You don't have permission to edit that";
 		exit;
 	}
 	
 	if (array_key_exists('confirm', $_POST))
 	{
 		rename (make_persona_storage_path($persona['id']), make_persona_pending_path($persona['id']));
 		$db->reject_persona($persona['id']);
+		$db->log_action($user->get_username(), $persona['id'], "Pulled");
 		include 'templates/delete_persona_success_tmpl.php';
 	}
 	else
 	{
 		$persona['json'] = htmlentities(json_encode(extract_record_data($persona)));
 		include 'templates/delete_persona_tmpl.php';
 	}