Archived
1
0

Allow to pass 'template' variable to serendipity_showPlugin

This commit is contained in:
Garvin Hicking
2010-11-29 16:53:25 +00:00
parent f7d196fa03
commit a8a4d4b7f7
2 changed files with 6 additions and 1 deletions
+2
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
+4 -1
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']);
} }
/** /**