X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=mod%2Fprofiles.php;h=75023beb64180038cc09c15b20cebaa166efba26;hb=3359f3f5c7ecc4b6a34c4fcfc095ab4dd5fab0f1;hp=545fb2fc78bb6854a5df91d24e361f9c8f3795c1;hpb=925d2d2383dc5c3a4adb07985bd4058cd79b0ee0;p=friendica.git diff --git a/mod/profiles.php b/mod/profiles.php index 545fb2fc78..75023beb64 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -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); } }