message fixes
This commit is contained in:
parent
56fc81f57e
commit
aea121ea2a
2 changed files with 4 additions and 4 deletions
|
@ -196,7 +196,7 @@ function message_content(&$a) {
|
||||||
);
|
);
|
||||||
if(! count($r)) {
|
if(! count($r)) {
|
||||||
notice( t('No messages.') . EOL);
|
notice( t('No messages.') . EOL);
|
||||||
return;
|
return $o;
|
||||||
}
|
}
|
||||||
|
|
||||||
$tpl = file_get_contents('view/mail_list.tpl');
|
$tpl = file_get_contents('view/mail_list.tpl');
|
||||||
|
@ -238,7 +238,7 @@ function message_content(&$a) {
|
||||||
}
|
}
|
||||||
if(! count($messages)) {
|
if(! count($messages)) {
|
||||||
notice( t('Message not available.') . EOL );
|
notice( t('Message not available.') . EOL );
|
||||||
return;
|
return $o;
|
||||||
}
|
}
|
||||||
|
|
||||||
$r = q("UPDATE `mail` SET `seen` = 1 WHERE `parent-uri` = '%s' AND `uid` = %d",
|
$r = q("UPDATE `mail` SET `seen` = 1 WHERE `parent-uri` = '%s' AND `uid` = %d",
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<div class="message-links">
|
<div class="message-links">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="message" class="message-link-inbox">$inbox</a></li>
|
<li><a href="message" class="message-link-inbox">$inbox</a></li>
|
||||||
<li><a href="message/sent" class="message-link-outbox">$outbox</li>
|
<li><a href="message/sent" class="message-link-outbox">$outbox</a></li>
|
||||||
<li><a href="message/new" class="message-link-new">$new</li>
|
<li><a href="message/new" class="message-link-new">$new</a></li>
|
||||||
<ul>
|
<ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue