summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-10-03 13:00:40 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-10-03 13:17:38 +0200
commit55586d9c22d5404d3d47aeb4290bc86944f98602 (patch)
tree3ddbe9c78e0c6317383bb4c72ce5ede8be149229 /web
parent76872d8b080c5924dac2f65760ee6190a7a368b1 (diff)
Include proper timestamp in auto-accept emails
Fixes a regression introduced in c70b340 (Close requests before accepting, 2014-07-29). Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web')
-rw-r--r--web/lib/pkgreqfuncs.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/pkgreqfuncs.inc.php b/web/lib/pkgreqfuncs.inc.php
index b2a7089..1b54a6a 100644
--- a/web/lib/pkgreqfuncs.inc.php
+++ b/web/lib/pkgreqfuncs.inc.php
@@ -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."));