aboutsummaryrefslogtreecommitdiffstats
path: root/mod/mail.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/mail.php')
-rw-r--r--mod/mail.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/mod/mail.php b/mod/mail.php
index 32bb19952..1ab2bc5ab 100644
--- a/mod/mail.php
+++ b/mod/mail.php
@@ -26,7 +26,7 @@ function mail_post(&$a) {
// finger them and find out before we try and send it.
if(! $recipient) {
- $channel = $a->get_channel();
+ $channel = App::get_channel();
$ret = zot_finger($rstr,$channel);
@@ -96,8 +96,8 @@ function mail_post(&$a) {
if(! $recipient) {
notice('No recipient found.');
- $a->argc = 2;
- $a->argv[1] = 'new';
+ App::$argc = 2;
+ App::$argv[1] = 'new';
return;
}
@@ -127,7 +127,7 @@ function mail_content(&$a) {
return login();
}
- $channel = $a->get_channel();
+ $channel = App::get_channel();
head_set_icon($channel['xchan_photo_s']);
@@ -203,7 +203,7 @@ function mail_content(&$a) {
'$expireswhen' => t('Expires YYYY-MM-DD HH:MM')
));
- $a->page['htmlhead'] .= $header;
+ App::$page['htmlhead'] .= $header;
$prename = '';
$preid = '';
@@ -298,18 +298,18 @@ function mail_content(&$a) {
}
if($messages[0]['to_xchan'] === $channel['channel_hash'])
- $a->poi = $messages[0]['from'];
+ App::$poi = $messages[0]['from'];
else
- $a->poi = $messages[0]['to'];
+ App::$poi = $messages[0]['to'];
// require_once('include/Contact.php');
-// $a->set_widget('mail_conversant',vcard_from_xchan($a->poi,$get_observer_hash,'mail'));
+// App::set_widget('mail_conversant',vcard_from_xchan(App::$poi,$get_observer_hash,'mail'));
$tpl = get_markup_template('msg-header.tpl');
- $a->page['htmlhead'] .= replace_macros($tpl, array(
+ App::$page['htmlhead'] .= replace_macros($tpl, array(
'$nickname' => $channel['channel_address'],
'$baseurl' => z_root(),
'$editselect' => (($plaintext) ? 'none' : '/(profile-jot-text|prvmail-text)/'),