aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-11 18:45:50 -0800
committerfriendica <info@friendica.com>2014-02-11 18:45:50 -0800
commit95a45a119dd61241ae8d0f0f8eda467cff64d855 (patch)
treed4769cba376030edc5862e8fbe6005fb235b15b9 /mod
parentb5728fa42efa0d12da8814711e0875da7fb88672 (diff)
downloadvolse-hubzilla-95a45a119dd61241ae8d0f0f8eda467cff64d855.tar.gz
volse-hubzilla-95a45a119dd61241ae8d0f0f8eda467cff64d855.tar.bz2
volse-hubzilla-95a45a119dd61241ae8d0f0f8eda467cff64d855.zip
shamelessly steal, and cut/paste from the settings page to get mod_photos edit permissions working - and it looks like we still have some other fancybox instances (yet another lightbox) which haven't yet been converted to colorbox and will need to be fixed. Way too many lightboxes.
Diffstat (limited to 'mod')
-rw-r--r--mod/photos.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/photos.php b/mod/photos.php
index 6798cb002..2fe2d8a74 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -281,6 +281,7 @@ function photos_post(&$a) {
);
if(count($p)) {
$ext = $phototypes[$p[0]['type']];
+
$r = q("UPDATE `photo` SET `description` = '%s', `album` = '%s', `allow_cid` = '%s', `allow_gid` = '%s', `deny_cid` = '%s', `deny_gid` = '%s' WHERE `resource_id` = '%s' AND `uid` = %d",
dbesc($desc),
dbesc($albname),
@@ -504,6 +505,9 @@ function photos_content(&$a) {
$o = "";
+ $o .= "<script> var profile_uid = " . $a->profile['profile_uid']
+ . "; var netargs = '?f='; var profile_page = " . $a->pager['page'] . "; </script>\r\n";
+
// tabs
$_is_owner = (local_user() && (local_user() == $owner_uid));