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