* @file mod/wallmessage.php
*/
use Friendica\App;
+use Friendica\Core\L10n;
use Friendica\Core\System;
use Friendica\Database\DBM;
use Friendica\Model\Mail;
$replyto = Profile::getMyURL();
if(! $replyto) {
- notice( t('Permission denied.') . EOL);
+ notice(L10n::t('Permission denied.') . EOL);
return;
}
$user = $r[0];
if(! intval($user['unkmail'])) {
- notice( t('Permission denied.') . EOL);
+ notice(L10n::t('Permission denied.') . EOL);
return;
}
switch($ret){
case -1:
- notice( t('No recipient selected.') . EOL );
+ notice(L10n::t('No recipient selected.') . EOL );
break;
case -2:
- notice( t('Unable to check your home location.') . EOL );
+ notice(L10n::t('Unable to check your home location.') . EOL );
break;
case -3:
- notice( t('Message could not be sent.') . EOL );
+ notice(L10n::t('Message could not be sent.') . EOL );
break;
case -4:
- notice( t('Message collection failure.') . EOL );
+ notice(L10n::t('Message collection failure.') . EOL );
break;
default:
- info( t('Message sent.') . EOL );
+ info(L10n::t('Message sent.') . EOL );
}
goaway('profile/'.$user['nickname']);
function wallmessage_content(App $a) {
if (!Profile::getMyURL()) {
- notice(t('Permission denied.') . EOL);
+ notice(L10n::t('Permission denied.') . EOL);
return;
}
$recipient = (($a->argc > 1) ? $a->argv[1] : '');
if(! $recipient) {
- notice( t('No recipient.') . EOL);
+ notice(L10n::t('No recipient.') . EOL);
return;
}
);
if (! DBM::is_result($r)) {
- notice( t('No recipient.') . EOL);
+ notice(L10n::t('No recipient.') . EOL);
logger('wallmessage: no recipient');
return;
}
$user = $r[0];
if(! intval($user['unkmail'])) {
- notice( t('Permission denied.') . EOL);
+ notice(L10n::t('Permission denied.') . EOL);
return;
}