summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-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 b2c7c0e..1db6abc 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);