Allow to pass 'template' variable to serendipity_showPlugin

This commit is contained in:
Garvin Hicking 2010-11-29 16:53:25 +00:00
parent 320276fcbc
commit afc4c997d3
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,8 @@
Version 1.6 () Version 1.6 ()
------------------------------------------------------------------------ ------------------------------------------------------------------------
* Allow to pass 'template' variable to serendipity_showPlugin
* Make CSS permalink pattern compatible to 1&1 servers, * Make CSS permalink pattern compatible to 1&1 servers,
thanks to lfrantzen thanks to lfrantzen

View File

@ -465,8 +465,11 @@ function serendipity_smarty_showPlugin($params, &$smarty) {
if (!isset($params['negate'])) { if (!isset($params['negate'])) {
$params['negate'] = null; $params['negate'] = null;
} }
if (empty($params['template'])) {
$params['template'] = 'sidebar.tpl';
}
return serendipity_plugin_api::generate_plugins($params['side'], null, $params['negate'], $params['class'], $params['id']); return serendipity_plugin_api::generate_plugins($params['side'], null, $params['negate'], $params['class'], $params['id'], $params['template']);
} }
/** /**