]> git.mxchange.org Git - friendica.git/blobdiff - mod/profile_photo.php
Merge pull request #3613 from annando/some-ostatus
[friendica.git] / mod / profile_photo.php
index f9bf60cf543605b0322a01903d115669baa3bd24..c9fc5232df57862c50bbac0fa4035481289c6532 100644 (file)
@@ -1,5 +1,7 @@
 <?php
 
+use Friendica\App;
+
 require_once("include/Photo.php");
 
 function profile_photo_init(App $a) {
@@ -9,10 +11,8 @@ function profile_photo_init(App $a) {
        }
 
        profile_load($a,$a->user['nickname']);
-
 }
 
-
 function profile_photo_post(App $a) {
 
        if (! local_user()) {
@@ -131,8 +131,7 @@ function profile_photo_post(App $a) {
                                        proc_run(PRIORITY_LOW, "include/directory.php", $url);
                                }
 
-                               require_once('include/profile_update.php');
-                               profile_change();
+                               proc_run(PRIORITY_LOW, 'include/profile_update.php', local_user());
                        } else {
                                notice( t('Unable to process image') . EOL);
                        }