aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profile_photo.php
diff options
context:
space:
mode:
authorsirius <sirius83@gmx.de>2014-04-20 00:58:26 +0200
committersirius <sirius83@gmx.de>2014-04-20 00:58:26 +0200
commit6cf5a69d7e8ac12c9c946397ca5c9a1126665974 (patch)
tree6c7e59f3bbb3376cb06f3ad26b25b134815a1ad2 /mod/profile_photo.php
parent3845e1de7d73664c818360c12ae2b7b3b1882c90 (diff)
downloadvolse-hubzilla-6cf5a69d7e8ac12c9c946397ca5c9a1126665974.tar.gz
volse-hubzilla-6cf5a69d7e8ac12c9c946397ca5c9a1126665974.tar.bz2
volse-hubzilla-6cf5a69d7e8ac12c9c946397ca5c9a1126665974.zip
Now we also refresh permissions after the user posted connedit.
Diffstat (limited to 'mod/profile_photo.php')
-rw-r--r--mod/profile_photo.php30
1 files changed, 29 insertions, 1 deletions
diff --git a/mod/profile_photo.php b/mod/profile_photo.php
index ab7c3b12f..c587b9606 100644
--- a/mod/profile_photo.php
+++ b/mod/profile_photo.php
@@ -18,7 +18,7 @@ function profile_photo_set_profile_perms($profileid = '') {
$allowcid = '';
if (x($profileid)) {
- $r = q("SELECT photo, profile_guid, id, is_default, uid FROM profile WHERE profile.id = %d LIMIT 1", intval($profileid));
+ $r = q("SELECT photo, profile_guid, id, is_default, uid FROM profile WHERE profile.id = %d OR profile.profile_guid = '%s' LIMIT 1", intval($profileid), dbesc($profileid));
} else {
@@ -53,6 +53,13 @@ function profile_photo_set_profile_perms($profileid = '') {
return;
}
+/* @brief Initalize the profile-photo edit view
+ *
+ * @param $a Current application
+ * @return void
+ *
+ */
+
function profile_photo_init(&$a) {
if(! local_user()) {
@@ -64,6 +71,12 @@ function profile_photo_init(&$a) {
}
+/* @brief Evaluate posted values
+ *
+ * @param $a Current application
+ * @return void
+ *
+ */
function profile_photo_post(&$a) {
@@ -235,6 +248,13 @@ function profile_photo_post(&$a) {
}
+/* @brief Generate content of profile-photo view
+ *
+ * @param $a Current application
+ * @return void
+ *
+ */
+
if(! function_exists('profile_photo_content')) {
function profile_photo_content(&$a) {
@@ -367,6 +387,14 @@ function profile_photo_content(&$a) {
return; // NOTREACHED
}}
+/* @brief Generate the UI for photo-cropping
+ *
+ * @param $a Current application
+ * @param $ph Photo-Factory
+ * @return void
+ *
+ */
+
if(! function_exists('profile_photo_crop_ui_head')) {
function profile_photo_crop_ui_head(&$a, $ph){