summaryrefslogtreecommitdiff
path: root/actions/newmessage.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-12-23 14:33:23 -0500
committerEvan Prodromou <evan@prodromou.name>2008-12-23 14:33:23 -0500
commit04ef1ba8eee7a9e2a565d7b4b747ef607665d562 (patch)
treed56ac33bd6bfb8f8641cc9f63b0f6af52b6edfb9 /actions/newmessage.php
parenteb2f9c98ac115ce67e9a740b200c832153ffa05c (diff)
change function headers to K&R style
Another huge change, for PEAR code standards compliance. Function headers have to be in K&R style (opening brace on its own line), instead of having the opening brace on the same line as the function and parameters. So, a little perl magic found all the function definitions and move the opening brace to the next line (properly indented... usually). darcs-hash:20081223193323-84dde-a28e36ecc66672c783c2842d12fc11043c13ab28.gz
Diffstat (limited to 'actions/newmessage.php')
-rw-r--r--actions/newmessage.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/actions/newmessage.php b/actions/newmessage.php
index eb582c2a5..0a537ad2d 100644
--- a/actions/newmessage.php
+++ b/actions/newmessage.php
@@ -21,7 +21,8 @@ if (!defined('LACONICA')) { exit(1); }
class NewmessageAction extends Action {
- function handle($args) {
+ function handle($args)
+ {
parent::handle($args);
if (!common_logged_in()) {
@@ -33,7 +34,8 @@ class NewmessageAction extends Action {
}
}
- function save_new_message() {
+ function save_new_message()
+ {
$user = common_current_user();
assert($user); # XXX: maybe an error instead...
@@ -89,7 +91,8 @@ class NewmessageAction extends Action {
common_redirect($url, 303);
}
- function show_top($params) {
+ function show_top($params)
+ {
list($content, $user, $to) = $params;
@@ -98,7 +101,8 @@ class NewmessageAction extends Action {
common_message_form($content, $user, $to);
}
- function show_form($msg=null) {
+ function show_form($msg=null)
+ {
$content = $this->trimmed('content');
$user = common_current_user();
@@ -128,7 +132,8 @@ class NewmessageAction extends Action {
common_show_footer();
}
- function notify($from, $to, $message) {
+ function notify($from, $to, $message)
+ {
mail_notify_message($message, $from, $to);
# XXX: Jabber, SMS notifications... probably queued
}