1
0

Make $entry available for templates (fix #610)

This commit is contained in:
onli
2019-07-03 17:51:36 +02:00
parent 623b2f8879
commit ba6ccb3dbb

View File

@ -1263,6 +1263,10 @@ function serendipity_printEntries($entries, $extended = 0, $preview = false, $sm
serendipity_db_bool($entry['moderate_comments']),
$entry
);
// Make $entry available for the index.tpl, it uses it to generate the canonical meta tag
$serendipity['smarty']->assign(array(
'entry' => $entry,
));
} // END FULL ENTRY LOGIC
} // end foreach-loop (entries)
} // end foreach-loop (dates)