mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-17 04:15:15 +02:00
more post branch bug fixes
This commit is contained in:
parent
503f403b3b
commit
04e65823d7
7 changed files with 108 additions and 8 deletions
|
@ -87,7 +87,7 @@ function dfrn_notify_post(&$a) {
|
|||
'$fn' => $r[0]['name'],
|
||||
'$title' => $msg['title'],
|
||||
'$body' => strip_tags(bbcode($msg['body']))
|
||||
);
|
||||
));
|
||||
|
||||
$res = mail($r[0]['email'], t("New mail received at ") . $a->config['sitename'],
|
||||
$email_tpl,t("From: Administrator@") . $_SERVER[SERVER_NAME] );
|
||||
|
|
|
@ -54,7 +54,7 @@ function message_post(&$a) {
|
|||
dbesc($subject),
|
||||
dbesc($body),
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
dbesc($uri),
|
||||
dbesc($replyto),
|
||||
|
@ -144,7 +144,7 @@ function message_content(&$a) {
|
|||
|
||||
if(($a->argc > 1) && ($a->argv[1] == 'new')) {
|
||||
|
||||
$tpl = file_get_contents('view/jot-header.tpl');
|
||||
$tpl = file_get_contents('view/msg-header.tpl');
|
||||
|
||||
$a->page['htmlhead'] .= replace_macros($tpl, array('$baseurl' => $a->get_baseurl()));
|
||||
|
||||
|
@ -248,7 +248,7 @@ function message_content(&$a) {
|
|||
|
||||
require_once("include/bbcode.php");
|
||||
|
||||
$tpl = file_get_contents('view/jot-header.tpl');
|
||||
$tpl = file_get_contents('view/msg-header.tpl');
|
||||
|
||||
$a->page['htmlhead'] .= replace_macros($tpl, array('$baseurl' => $a->get_baseurl()));
|
||||
|
||||
|
|
|
@ -112,6 +112,9 @@ function photo_init(&$a) {
|
|||
}
|
||||
|
||||
header("Content-type: image/jpeg");
|
||||
header('Expires: ' . datetime_convert('UTC','UTC', 'now + 30 minutes', 'D, d M Y H:i:s' . ' GMT'));
|
||||
header('Expires: ' . datetime_convert('UTC','UTC', 'now + 30 minutes', 'D, d M Y H:i:s' . ' GMT'));
|
||||
header("Cache-Control: max-age=3600, must-revalidate");
|
||||
echo $data;
|
||||
killme();
|
||||
return; //NOTREACHED
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue