check object
This commit is contained in:
parent
d6e9e0a320
commit
2f2190851c
|
@ -610,8 +610,10 @@ class serendipity_event_customarchive extends serendipity_event {
|
|||
$serendipity['GET']['subpage'] = $nice_url;
|
||||
}
|
||||
|
||||
serendipity_smarty_init();
|
||||
$serendipity['smarty']->register_function('customArchive', array($this, 'smarty_customArchive'));
|
||||
if (!is_object($serendipity['smarty'])) {
|
||||
serendipity_smarty_init();
|
||||
}
|
||||
$serendipity['smarty']->register_function('customArchive', array($this, 'smarty_customArchive'));
|
||||
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue