]> git.mxchange.org Git - friendica.git/blobdiff - mod/profiles.php
Fix formatting in mod/settings
[friendica.git] / mod / profiles.php
index 545fb2fc78bb6854a5df91d24e361f9c8f3795c1..75023beb64180038cc09c15b20cebaa166efba26 100644 (file)
@@ -10,8 +10,7 @@ use Friendica\Core\Worker;
 use Friendica\Database\DBM;
 use Friendica\Model\GlobalContact;
 use Friendica\Network\Probe;
-
-require_once 'include/Contact.php';
+use Friendica\Object\Profile;
 
 function profiles_init(App $a) {
 
@@ -490,7 +489,7 @@ function profiles_post(App $a) {
                }
 
                if ($is_default) {
-                       $location = formatted_location(array("locality" => $locality, "region" => $region, "country-name" => $country_name));
+                       $location = Profile::formatLocation(array("locality" => $locality, "region" => $region, "country-name" => $country_name));
 
                        q("UPDATE `contact` SET `about` = '%s', `location` = '%s', `keywords` = '%s', `gender` = '%s' WHERE `self` AND `uid` = %d",
                                dbesc($about),
@@ -506,7 +505,7 @@ function profiles_post(App $a) {
                                Worker::add(PRIORITY_LOW, "Directory", $url);
                        }
 
-                       Worker::add(PRIORITY_LOW, 'profile_update', local_user());
+                       Worker::add(PRIORITY_LOW, 'ProfileUpdate', local_user());
 
                        // Update the global contact for the user
                        GlobalContact::updateForUser(local_user());
@@ -600,7 +599,7 @@ function profile_activity($changed, $value) {
 
        $i = item_store($arr);
        if ($i) {
-               Worker::add(PRIORITY_HIGH, "notifier", "activity", $i);
+               Worker::add(PRIORITY_HIGH, "Notifier", "activity", $i);
        }
 }