summaryrefslogtreecommitdiff
path: root/core/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'core/helpers')
-rw-r--r--core/helpers/album.php3
-rw-r--r--core/helpers/photo.php3
2 files changed, 4 insertions, 2 deletions
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)
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"])) {