mirror of
https://github.com/friendica/friendica
synced 2025-04-26 14:30:13 +00:00
Add some analysing stuff, rendered value is written now more often
This commit is contained in:
parent
9b5c6ed580
commit
c4ba035ee3
7 changed files with 52 additions and 15 deletions
|
@ -20,10 +20,10 @@ function replace_macros($s,$r) {
|
|||
$stamp1 = microtime(true);
|
||||
|
||||
$a = get_app();
|
||||
|
||||
|
||||
// pass $baseurl to all templates
|
||||
$r['$baseurl'] = z_root();
|
||||
|
||||
|
||||
|
||||
$t = $a->template_engine();
|
||||
try {
|
||||
|
@ -1415,9 +1415,13 @@ function prepare_body(&$item,$attach = false, $preview = false) {
|
|||
$item['hashtags'] = $hashtags;
|
||||
$item['mentions'] = $mentions;
|
||||
|
||||
$test = $item["rendered-html"];
|
||||
put_item_in_cache($item, true);
|
||||
$s = $item["rendered-html"];
|
||||
|
||||
//if ($test != $s)
|
||||
// $s .= "<hr>*********************************<hr>".$test;
|
||||
|
||||
$prep_arr = array('item' => $item, 'html' => $s, 'preview' => $preview);
|
||||
call_hooks('prepare_body', $prep_arr);
|
||||
$s = $prep_arr['html'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue