serendipity_plugins_comments
Posted: Fri Aug 04, 2006 11:15 pm
In the comments-sidebar-plugin, there is this code:
But in the config there is no viewtype but viewmode - so the config (comments/trackbacks/all) do not work. It should be
Code: Select all
$viewtype = '';
if ($this->get_config('viewtype') == 'comments') {
$viewtype .= ' AND c.type = \'NORMAL\'';
} elseif ($this->get_config('viewtype') == 'trackbacks') {
$viewtype .= ' AND c.type = \'TRACKBACK\'';
}
Code: Select all
$viewtype = '';
if ($this->get_config('viewmode') == 'comments') {
$viewtype .= ' AND c.type = \'NORMAL\'';
} elseif ($this->get_config('viewmode') == 'trackbacks') {
$viewtype .= ' AND c.type = \'TRACKBACK\'';
}