X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fmood.php;h=c4d93b6de2fe4c645b087cdf0cac073b8e3411a7;hb=c6ceae52250877c966a3ede6c6e9d2c49bb8ca8a;hp=c64dd0d9efbe2ae3baa68618d8c0c774115ea9a4;hpb=ff569756ee6c5e058700cf6428918f059525e77c;p=friendica.git diff --git a/mod/mood.php b/mod/mood.php index c64dd0d9ef..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; }