summaryrefslogtreecommitdiffstats
path: root/web/html/pkgsubmit.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/html/pkgsubmit.php')
-rw-r--r--web/html/pkgsubmit.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index b2c7c0eb..1db6abcd 100644
--- a/web/html/pkgsubmit.php
+++ b/web/html/pkgsubmit.php
@@ -372,6 +372,7 @@ if ($_COOKIE["AURSID"]):
header('Location: packages.php?ID=' . $pdata['ID']);
} else {
+ $uid = uid_from_sid($_COOKIE["AURSID"]);
# This is a brand new package
$q = sprintf("INSERT INTO Packages (Name, License, Version, CategoryID, Description, URL, LocationID, SubmittedTS, SubmitterUID, MaintainerUID, FSPath, URLPath) VALUES ('%s', '%s', '%s-%s', %d, '%s', '%s', 2, UNIX_TIMESTAMP(), %d, %d, '%s', '%s')",
@@ -416,6 +417,8 @@ if ($_COOKIE["AURSID"]):
db_query($q, $dbh);
}
}
+
+ pkg_notify(account_from_sid($_COOKIE["AURSID"]), array($packageID));
header('Location: packages.php?ID=' . $packageID);