summaryrefslogtreecommitdiff
path: root/core/helpers/photo.php
diff options
context:
space:
mode:
authorFelix Rabinovich <virshu@users.sourceforge.net>2008-11-08 07:18:56 +0000
committerFelix Rabinovich <virshu@users.sourceforge.net>2008-11-08 07:18:56 +0000
commit28b739a2105cba83f877d4fc4022d710b920b5a7 (patch)
treee814afda14126e1ae3160d07040f90042c42a8cd /core/helpers/photo.php
parent3bb9b9185cb9445157ab20df9178f9a892a0bbe0 (diff)
Adding user (owner) to items; info module
Diffstat (limited to 'core/helpers/photo.php')
-rw-r--r--core/helpers/photo.php3
1 files changed, 2 insertions, 1 deletions
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"])) {