Sorry. Please use 2.26, or this diff.
Code: Select all
@@ -25,11 +25,11 @@ class serendipity_event_multilingual extends serendipity_event
'serendipity' => '1.6',
'smarty' => '2.6.7',
'php' => '4.1.0'
));
$propbag->add('groups', array('FRONTEND_ENTRY_RELATED', 'BACKEND_EDITOR'));
- $propbag->add('version', '2.25');
+ $propbag->add('version', '2.26');
$propbag->add('configuration', array('copytext', 'placement', 'tagged_title', 'tagged_entries', 'tagged_sidebar', 'langswitch'));
$propbag->add('event_hooks', array(
'frontend_fetchentries' => true,
'frontend_fetchentry' => true,
'entry_display' => true,
@@ -378,11 +378,15 @@ class serendipity_event_multilingual extends serendipity_event
case 'backend_configure':
if (!is_array($eventData)) {
return false;
}
+ if (!is_object($serendipity['smarty'])) {
+ serendipity_smarty_init();
+ }
$serendipity['smarty']->assign('blogTitle', $this->strip_langs($eventData['blogTitle']));
+ $serendipity['smarty']->assign('blogDescription', $this->strip_langs($serendipity['blogDescription']));
break;
case 'backend_entry_updertEntry':
if (isset($serendipity['POST']['no_save'])) {
$eventData['error'] = true;
@@ -445,10 +449,11 @@ class serendipity_event_multilingual extends serendipity_event
serendipity_smarty_init($serendipity['plugindata']['smartyvars']);
}
// assign lang stripped blogTitle to archive page
if ($serendipity['plugindata']['smartyvars']['view'] == 'archive') {
$serendipity['smarty']->assign('blogTitle', $this->strip_langs($serendipity['blogTitle']));
+ $serendipity['smarty']->assign('blogDescription', $this->strip_langs($serendipity['blogDescription']));
}
if (!defined('Smarty::SMARTY_VERSION')) {
$this->tag_title(); // in Smarty 2 only
// check this deeply! - since at least for the non-tag banner entry_title this seems to not work here with Smarty 3 - see workaround in frontent_display
Still strange though that you haven't had an already initiated Smarty object at this point.
Ah, I noticed that clearing cache did solve this for you. Well, still better to have this check there added with 2.26.
Oh - and btw, if you have Spartacus mirrors set to GitHub you'll get the new commit 2.26 right away, if one has not updated the previous 2.25 version yet.
Oh - and another btw. Since loving tags, you may probably would like to test my freetags dev plugin.
https://github.com/ophian/serendipity_e ... g/releases
Please read the changeLog file from v3.66, which shows, it was quite treated since then.