Commit 55586d9c authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

Include proper timestamp in auto-accept emails

Fixes a regression introduced in c70b340c

 (Close requests before
accepting, 2014-07-29).

Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent 76872d8b
......@@ -199,13 +199,13 @@ function pkgreq_file($ids, $type, $merge_into, $comments) {
* maintainer will not be included in the Cc list of the
* request notification email.
*/
$out_of_date_time = gmdate("Y-m-d", intval($details["OutOfDateTS"]));
pkgreq_close($request_id, "accepted",
"The package base has been flagged out-of-date " .
"since " . $out_of_date_time . ".", true);
$q = "UPDATE PackageBases SET MaintainerUID = NULL ";
$q.= "WHERE ID = " . $base_id;
$dbh->exec($q);
$out_of_date_time = gmdate("Y-m-d", intval($details["OutOfDateTS"]));
}
return array(true, __("Added request successfully."));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment