aboutsummaryrefslogtreecommitdiffstats
path: root/include/photo
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-09-20 15:38:11 -0700
committerredmatrix <mike@macgirvin.com>2016-09-20 15:38:11 -0700
commit007836f514b5e268078bf20bd95fe260fb76fb4f (patch)
tree8fc97633a7d9fc5282889f2e235fbccb8508cf9c /include/photo
parent83dd1c7be20a1ba0ed510b1ee67dcac86e468674 (diff)
downloadvolse-hubzilla-007836f514b5e268078bf20bd95fe260fb76fb4f.tar.gz
volse-hubzilla-007836f514b5e268078bf20bd95fe260fb76fb4f.tar.bz2
volse-hubzilla-007836f514b5e268078bf20bd95fe260fb76fb4f.zip
issue #519
Diffstat (limited to 'include/photo')
-rw-r--r--include/photo/photo_driver.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php
index 6de75d497..35cf77707 100644
--- a/include/photo/photo_driver.php
+++ b/include/photo/photo_driver.php
@@ -358,6 +358,7 @@ abstract class photo_driver {
`photo_usage` = %d,
`title` = '%s',
`description` = '%s',
+ `os_path` = '%s',
`allow_cid` = '%s',
`allow_gid` = '%s',
`deny_cid` = '%s',
@@ -382,6 +383,7 @@ abstract class photo_driver {
intval($p['photo_usage']),
dbesc($p['title']),
dbesc($p['description']),
+ dbesc($p['os_path']),
dbesc($p['allow_cid']),
dbesc($p['allow_gid']),
dbesc($p['deny_cid']),
@@ -391,8 +393,8 @@ abstract class photo_driver {
}
else {
$r = q("INSERT INTO `photo`
- ( `aid`, `uid`, `xchan`, `resource_id`, `created`, `edited`, `filename`, mimetype, `album`, `height`, `width`, `content`, `os_storage`, `filesize`, `imgscale`, `photo_usage`, `title`, `description`, `allow_cid`, `allow_gid`, `deny_cid`, `deny_gid` )
- VALUES ( %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, '%s', %d, %d, %d, %d, '%s', '%s', '%s', '%s', '%s', '%s' )",
+ ( `aid`, `uid`, `xchan`, `resource_id`, `created`, `edited`, `filename`, mimetype, `album`, `height`, `width`, `content`, `os_storage`, `filesize`, `imgscale`, `photo_usage`, `title`, `description`, `os_path`, `allow_cid`, `allow_gid`, `deny_cid`, `deny_gid` )
+ VALUES ( %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, '%s', %d, %d, %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s' )",
intval($p['aid']),
intval($p['uid']),
dbesc($p['xchan']),
@@ -411,6 +413,7 @@ abstract class photo_driver {
intval($p['photo_usage']),
dbesc($p['title']),
dbesc($p['description']),
+ dbesc($p['os_path']),
dbesc($p['allow_cid']),
dbesc($p['allow_gid']),
dbesc($p['deny_cid']),