require_once('include/message.php');
require_once('include/Smilies.php');
-function message_init(&$a) {
+function message_init(App $a) {
$tabs = '';
}
-function message_post(&$a) {
+function message_post(App $a) {
- if(! local_user()) {
+ if (! local_user()) {
notice( t('Permission denied.') . EOL);
return;
}
$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
-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;
}
intval($a->argv[2]),
intval(local_user())
);
- if($r) {
+ if ($r) {
info( t('Message deleted.') . EOL );
}
//goaway(App::get_baseurl(true) . '/message' );
$_SESSION['return_url'] = $a->query_string;
- if($a->argc == 1) {
+ if ($a->argc == 1) {
// List messages