From: Bharat M. <bh...@us...> - 2003-03-24 05:17:21
|
Update of /cvsroot/gallery/gallery2/layouts/classic In directory sc8-pr-cvs1:/tmp/cvs-serv26863a/layouts/classic Modified Files: layout.inc Log Message: Change GalleryItemHelper API calls to no longer require the user id. We hard code the active user id instead. This simplifies the UI and removes an ability that we never used. Index: layout.inc =================================================================== RCS file: /cvsroot/gallery/gallery2/layouts/classic/layout.inc,v retrieving revision 1.32 retrieving revision 1.33 diff -u -r1.32 -r1.33 --- layout.inc 13 Mar 2003 17:52:48 -0000 1.32 +++ layout.inc 24 Mar 2003 05:17:13 -0000 1.33 @@ -99,9 +99,7 @@ /* Count the total number of children */ /* XXX: we could combine this with the other getChildCounts() call below */ - list ($ret, $totalChildCount) = - GalleryItemHelper::getChildCounts(array($item->getId()), - $gallery->getActiveUserId()); + list ($ret, $totalChildCount) = GalleryItemHelper::getChildCounts(array($item->getId())); if ($ret->isError()) { return array($ret->wrap(__FILE__, __LINE__), null); } @@ -142,8 +140,7 @@ } /* Get the "grandchild" counts */ - list ($ret, $childCounts) = - GalleryItemHelper::getChildCounts($childIds, $gallery->getActiveUserId()); + list ($ret, $childCounts) = GalleryItemHelper::getChildCounts($childIds); if ($ret->isError()) { return array($ret->wrap(__FILE__, __LINE__), null); } @@ -297,10 +294,7 @@ */ $imageViews = array(); - list ($ret, $permissions) = - GalleryItemHelper::getPermissions($item->getId(), - $gallery->getActiveUserId()); - + list ($ret, $permissions) = GalleryItemHelper::getPermissions($item->getId()); if ($ret->isError()) { return array($ret->wrap(__FILE__, __LINE__), null); } |