]> git.mxchange.org Git - friendica.git/blobdiff - mod/profiles.php
Merge branch '1706-lock' of github.com:annando/friendica into 1706-lock
[friendica.git] / mod / profiles.php
index 42699e5e0c7aab57f376bdb3c39489d09151ebbd..01030914c47bd095b7806403ab52ea63eead1a44 100644 (file)
@@ -1,9 +1,10 @@
 <?php
 
 use Friendica\App;
+use Friendica\Network\Probe;
 
-require_once("include/Contact.php");
-require_once('include/Probe.php');
+require_once 'include/Contact.php';
+require_once 'include/socgraph.php';
 
 function profiles_init(App $a) {
 
@@ -504,8 +505,7 @@ function profiles_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());
 
                        // Update the global contact for the user
                        update_gcontact_for_user(local_user());
@@ -529,7 +529,7 @@ function profile_activity($changed, $value) {
                return;
        }
 
-       require_once('include/items.php');
+       require_once 'include/items.php';
 
        $self = q("SELECT * FROM `contact` WHERE `self` = 1 AND `uid` = %d LIMIT 1",
                intval(local_user())
@@ -623,7 +623,7 @@ function profiles_content(App $a) {
                        return;
                }
 
-               require_once('include/profile_selectors.php');
+               require_once 'include/profile_selectors.php';
 
 
                $a->page['htmlhead'] .= replace_macros(get_markup_template('profed_head.tpl'), array(