X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fmessage.php;h=5f5f9f98efbd8f432048fcf2dc1f7ec87a6f7d5d;hb=5eaa5951a1b19b985017b5db20f3b1abf464a1ef;hp=b0d0ba95ca54d92d7503306e8b54e7c8871bda8b;hpb=abff6372ddd09be7750b5f1af5a1f889cfeb9635;p=friendica.git diff --git a/mod/message.php b/mod/message.php index b0d0ba95ca..5f5f9f98ef 100644 --- a/mod/message.php +++ b/mod/message.php @@ -4,7 +4,7 @@ require_once('include/acl_selectors.php'); require_once('include/message.php'); require_once('include/Smilies.php'); -function message_init(&$a) { +function message_init(App $a) { $tabs = ''; @@ -40,9 +40,9 @@ function message_init(&$a) { } -function message_post(&$a) { +function message_post(App $a) { - if(! local_user()) { + if (! local_user()) { notice( t('Permission denied.') . EOL); return; } @@ -160,7 +160,7 @@ function item_redir_and_replace_images($body, $images, $cid) { $newbody = $newbody . $origbody; $cnt = 0; - foreach($images as $image) { + foreach ($images as $image) { // We're depending on the property of 'foreach' (specified on the PHP website) that // it loops over the array starting from the first element and going sequentially // to the last element @@ -173,12 +173,12 @@ function item_redir_and_replace_images($body, $images, $cid) { -function message_content(&$a) { +function message_content(App $a) { $o = ''; nav_set_selected('messages'); - if(! local_user()) { + if (! local_user()) { notice( t('Permission denied.') . EOL); return; } @@ -231,7 +231,7 @@ function message_content(&$a) { intval($a->argv[2]), intval(local_user()) ); - if($r) { + if ($r) { info( t('Message deleted.') . EOL ); } //goaway(App::get_baseurl(true) . '/message' ); @@ -364,7 +364,7 @@ function message_content(&$a) { $_SESSION['return_url'] = $a->query_string; - if($a->argc == 1) { + if ($a->argc == 1) { // List messages