cvs: pearweb /include pear-database.php
| From: | Greg Beaver | Date: | Sat, 13 Aug 2005 05:03:27 +0000 |
| Subject: | cvs: pearweb /include pear-database.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-3501@lists.php.net to get a copy of this message | ||
cellog Sat Aug 13 01:03:27 2005 EDT
Modified files:
/pearweb/include pear-database.php
Log:
when users are added to a package via the "add maintainers to
a package" mechanism, they are not actually added. Correct this.
http://cvs.php.net/diff.php/pearweb/include/pear-database.php?r1=1.281&r2=1.282&ty=u
Index: pearweb/include/pear-database.php
diff -u pearweb/include/pear-database.php:1.281 pearweb/include/pear-database.php:1.282
--- pearweb/include/pear-database.php:1.281 Thu Jul 28 17:34:06 2005
+++ pearweb/include/pear-database.php Sat Aug 13 01:03:26 2005
@@ -17,7 +17,7 @@
| Tomas V.V.Cox <cox@php.net> |
| Martin Jansen <mj@php.net> |
+----------------------------------------------------------------------+
- $Id: pear-database.php,v 1.281 2005/07/28 21:34:06 cellog Exp $
+ $Id: pear-database.php,v 1.282 2005/08/13 05:03:26 cellog Exp $
*/
require_once 'DB/storage.php';
@@ -1194,7 +1194,7 @@
*/
function add($package, $user, $role, $active = 1)
{
- global $dbh, $auth_user;
+ global $dbh, $auth_user, $pear_rest;
if (!user::exists($user)) {
return PEAR::raiseError("User $user does not exist");
@@ -1207,6 +1207,8 @@
if (DB::isError($err)) {
return $err;
}
+ $packagename = package::info($package, 'name');
+ $pear_rest->savePackageMaintainerREST($packagename);
return true;
}