diff options
author | Callan Barrett <wizzomafizzo@gmail.com> | 2008-10-10 05:29:37 +0200 |
---|---|---|
committer | Loui Chang <louipc.ist@gmail.com> | 2009-06-18 08:05:02 +0200 |
commit | d25c1772295cff12e96f6836203c0515ddd4bc2a (patch) | |
tree | 81b872af3a500629f7c96dd0a20e585741baa3bb /web/html/pkgsubmit.php | |
parent | 0427eebaa4b3343fa0d165fbfef2ff0857897b57 (diff) | |
download | aur-d25c1772295cff12e96f6836203c0515ddd4bc2a.tar.gz aur-d25c1772295cff12e96f6836203c0515ddd4bc2a.tar.xz |
Turn on package notification by default for new packages
Version using package functions
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/html/pkgsubmit.php')
-rw-r--r-- | web/html/pkgsubmit.php | 3 |
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); |