]> git.mxchange.org Git - friendica.git/blobdiff - mod/message.php
Merge pull request #3078 from Hypolite/issue/#3039-mod-2of3
[friendica.git] / mod / message.php
index b0d0ba95ca54d92d7503306e8b54e7c8871bda8b..5f5f9f98efbd8f432048fcf2dc1f7ec87a6f7d5d 100644 (file)
@@ -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