multilang: assign stripped blogTitle in genpage (empty search was not covered) (#84)
This commit is contained in:
parent
524b26d0d5
commit
020e6acaa3
|
@ -1,3 +1,4 @@
|
|||
2.35: assign lang stripped blogTitle in genpage hook (empty search was not covered)
|
||||
2.34: Added legal gdpr/dsgvo info
|
||||
2.33: Iconfont a11y fix (yellowled)
|
||||
|
||||
|
@ -98,4 +99,4 @@
|
|||
|
||||
2.6: Fix a PHP error notice
|
||||
|
||||
2.5: Allow for tagged translations, see documentation. By praabjerg
|
||||
2.5: Allow for tagged translations, see documentation. By praabjerg
|
||||
|
|
|
@ -27,7 +27,7 @@ class serendipity_event_multilingual extends serendipity_event
|
|||
'php' => '4.1.0'
|
||||
));
|
||||
$propbag->add('groups', array('FRONTEND_ENTRY_RELATED', 'BACKEND_EDITOR'));
|
||||
$propbag->add('version', '2.34');
|
||||
$propbag->add('version', '2.35');
|
||||
$propbag->add('configuration', array('copytext', 'placement', 'tagged_title', 'tagged_entries', 'tagged_sidebar', 'langswitch'));
|
||||
$propbag->add('event_hooks', array(
|
||||
'frontend_fetchentries' => true,
|
||||
|
@ -475,11 +475,9 @@ class serendipity_event_multilingual extends serendipity_event
|
|||
$serendipity['blogTitle'] = $this->strip_langs($serendipity['blogTitle']);
|
||||
$serendipity['blogDescription'] = $this->strip_langs($serendipity['blogDescription']);
|
||||
|
||||
// assign lang stripped blogTitle to archive page, which overwrites them for case archive pages
|
||||
if ($serendipity['plugindata']['smartyvars']['view'] == 'archive') {
|
||||
$serendipity['smarty']->assign('blogTitle', $serendipity['blogTitle']);
|
||||
$serendipity['smarty']->assign('blogDescription', $serendipity['blogDescription']);
|
||||
}
|
||||
// assign lang stripped blogTitle to all generated pages (empty search pages aren't processed otherwise)
|
||||
$serendipity['smarty']->assign('blogTitle', $serendipity['blogTitle']);
|
||||
$serendipity['smarty']->assign('blogDescription', $serendipity['blogDescription']);
|
||||
|
||||
if (!defined('Smarty::SMARTY_VERSION')) {
|
||||
$this->tag_title(); // in Smarty 2 only
|
||||
|
@ -829,4 +827,4 @@ class serendipity_event_multilingual extends serendipity_event
|
|||
}
|
||||
|
||||
/* vim: set sts=4 ts=4 expandtab : */
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue