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/photo.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/helpers/photo.php') diff --git a/core/helpers/photo.php b/core/helpers/photo.php index ef94f52b..231e3a9c 100644 --- a/core/helpers/photo.php +++ b/core/helpers/photo.php @@ -33,12 +33,13 @@ class Photo_Core { * @param string $description (optional) the longer description of this photo * @return Item_Model */ - static function create($parent_id, $filename, $name, $title, $description=null) { + static function create($parent_id, $filename, $name, $title, $description=null, $user_id = null) { $photo = ORM::factory("item"); $photo->type = "photo"; $photo->title = $title; $photo->description = $description; $photo->name = $name; + $photo->user_id = $user_id; $pi = pathinfo(basename($filename)); if (empty($pi["extension"])) { -- cgit v1.2.3