define js profile_uid in photos module

This commit is contained in:
friendica 2013-11-14 15:53:31 -08:00
parent 592c24e162
commit c2274403c7

View file

@ -42,7 +42,7 @@ function photos_init(&$a) {
$a->set_widget('photo_albums',photos_album_widget($a->data['channel'],$observer,$a->data['albums']));
}
$a->page['htmlhead'] .= "<script> var ispublic = '" . t('everybody') . "';</script>" ;
$a->page['htmlhead'] .= "<script> var ispublic = '" . t('everybody') . "'; var profile_uid = " . (($a->data['channel']) ? $a->data['channel']['channel_id'] : 0) . "; </script>" ;
}