X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fmood.php;h=c4d93b6de2fe4c645b087cdf0cac073b8e3411a7;hb=d0dfcc71a82ac423db68a12fd2eaf6d13cb18e1f;hp=0e603c869a110e5155819b611a42c2bf58f4102c;hpb=ee39aba490fb7e17ba9c01a9a4f4aedc51bee564;p=friendica.git diff --git a/mod/mood.php b/mod/mood.php index 0e603c869a..c4d93b6de2 100644 --- a/mod/mood.php +++ b/mod/mood.php @@ -1,11 +1,13 @@ get_hostname(),$uid); - $action = sprintf( t('%1$s is currently %2$s'), '[url=' . $poster['url'] . ']' . $poster['name'] . '[/url]' , $verbs[$verb]); + $action = sprintf( t('%1$s is currently %2$s'), '[url=' . $poster['url'] . ']' . $poster['name'] . '[/url]' , $verbs[$verb]); $arr = array(); $arr['guid'] = get_guid(32); @@ -92,7 +94,7 @@ function mood_init(App &$a) { $item_id = item_store($arr); if($item_id) { q("UPDATE `item` SET `plink` = '%s' WHERE `uid` = %d AND `id` = %d", - dbesc(App::get_baseurl() . '/display/' . $poster['nickname'] . '/' . $item_id), + dbesc(System::baseUrl() . '/display/' . $poster['nickname'] . '/' . $item_id), intval($uid), intval($item_id) ); @@ -109,7 +111,7 @@ function mood_init(App &$a) { -function mood_content(App &$a) { +function mood_content(App $a) { if (! local_user()) { notice( t('Permission denied.') . EOL);