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.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user