From 28b739a2105cba83f877d4fc4022d710b920b5a7 Mon Sep 17 00:00:00 2001 From: Felix Rabinovich Date: Sat, 8 Nov 2008 07:18:56 +0000 Subject: Adding user (owner) to items; info module --- core/helpers/album.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/helpers/album.php') diff --git a/core/helpers/album.php b/core/helpers/album.php index 021c09f3..3c97f7e8 100644 --- a/core/helpers/album.php +++ b/core/helpers/album.php @@ -32,12 +32,13 @@ class Album_Core { * @param string $description (optional) the longer description of this album * @return Item_Model */ - static function create($parent_id, $name, $title, $description=null) { + static function create($parent_id, $name, $title, $description=null, $user_id = null) { $album = ORM::factory("item"); $album->type = "album"; $album->title = $title; $album->description = $description; $album->name = $name; + $album->user_id = $user_id; while (ORM::Factory("item") ->where("parent_id", $parent_id) -- cgit v1.2.3