php8 compat: Include missing smarty variables in genpage
This commit is contained in:
parent
b886a6a66c
commit
302960b786
@ -102,7 +102,6 @@ switch ($serendipity['GET']['action']) {
|
|||||||
case 'comments':
|
case 'comments':
|
||||||
serendipity_printCommentsByAuthor();
|
serendipity_printCommentsByAuthor();
|
||||||
// use 'content_message' for pagination?
|
// use 'content_message' for pagination?
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Show the archive
|
// Show the archive
|
||||||
@ -132,6 +131,57 @@ if ($serendipity['GET']['action'] != 'search' && !empty($serendipity['content_me
|
|||||||
$serendipity['smarty']->assign('content_message', $serendipity['content_message']);
|
$serendipity['smarty']->assign('content_message', $serendipity['content_message']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if ($serendipity['smarty']->getTemplateVars('searchresult_tooShort') == null) {
|
||||||
|
$serendipity['smarty']->assign(
|
||||||
|
array(
|
||||||
|
'searchresult_tooShort' => false
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if ($serendipity['smarty']->getTemplateVars('searchresult_error') == null) {
|
||||||
|
$serendipity['smarty']->assign(
|
||||||
|
array(
|
||||||
|
'searchresult_error' => false
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if ($serendipity['smarty']->getTemplateVars('searchresult_noEntries') == null) {
|
||||||
|
$serendipity['smarty']->assign(
|
||||||
|
array(
|
||||||
|
'searchresult_noEntries' => false
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if ($serendipity['smarty']->getTemplateVars('searchresult_results') == null) {
|
||||||
|
$serendipity['smarty']->assign(
|
||||||
|
array(
|
||||||
|
'searchresult_results' => false
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if ($serendipity['smarty']->getTemplateVars('content_message') == null) {
|
||||||
|
$serendipity['smarty']->assign(
|
||||||
|
array(
|
||||||
|
'content_message' => false
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if ($serendipity['smarty']->getTemplateVars('ARCHIVES') == null) {
|
||||||
|
$serendipity['smarty']->assign(
|
||||||
|
array(
|
||||||
|
'ARCHIVES' => ''
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if ($serendipity['smarty']->getTemplateVars('ENTRIES') == null) {
|
||||||
|
$serendipity['smarty']->assign(
|
||||||
|
array(
|
||||||
|
'ENTRIES' => ''
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
serendipity_smarty_fetch('CONTENT', 'content.tpl');
|
serendipity_smarty_fetch('CONTENT', 'content.tpl');
|
||||||
$serendipity['smarty']->assign('ENTRIES', '');
|
$serendipity['smarty']->assign('ENTRIES', '');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user