X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fmood.php;h=c4d93b6de2fe4c645b087cdf0cac073b8e3411a7;hb=d0dfcc71a82ac423db68a12fd2eaf6d13cb18e1f;hp=f804af0c00819ec0d9ed93714867e44b49396502;hpb=9559ecb5f304c4e86950d74ed7a9c01f999d61fc;p=friendica.git diff --git a/mod/mood.php b/mod/mood.php index f804af0c00..c4d93b6de2 100644 --- a/mod/mood.php +++ b/mod/mood.php @@ -1,14 +1,17 @@ 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); @@ -91,7 +94,7 @@ function mood_init(&$a) { $item_id = item_store($arr); if($item_id) { q("UPDATE `item` SET `plink` = '%s' WHERE `uid` = %d AND `id` = %d", - dbesc($a->get_baseurl() . '/display/' . $poster['nickname'] . '/' . $item_id), + dbesc(System::baseUrl() . '/display/' . $poster['nickname'] . '/' . $item_id), intval($uid), intval($item_id) ); @@ -108,9 +111,9 @@ function mood_init(&$a) { -function mood_content(&$a) { +function mood_content(App $a) { - if(! local_user()) { + if (! local_user()) { notice( t('Permission denied.') . EOL); return; }