Closed (duplicate)
Project:
Vote Up/Down
Version:
6.x-1.0-beta6
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
15 Sep 2009 at 06:58 UTC
Updated:
6 Jun 2010 at 07:20 UTC
vote_up_down_widget$style outputs as vote_up_down_widgetalt instead of vote_up_down_widget_alt
so alternative style doesn't work
function vote_up_down_widget_form($node) {
$return = '';
if (user_access('view up/down votes')) {
$node_type = in_array($node->type, variable_get('vote_up_down_node_types', array()), TRUE);
if ($node_type) {
$style = variable_get('vote_up_down_widget_style_node', 0) == 1 ? '_alt' : '';
if ($teaser && variable_get('vote_up_down_widget_node', 0) && variable_get('vote_up_down_widget_node', 0) != 2) {
$return = theme("vote_up_down_widget$style", $node->nid, 'node');
}
else if (!$teaser && variable_get('vote_up_down_widget_node', 0) > 1) {
$return = theme("vote_up_down_widget$style", $node->nid, 'node');
}
}
}
return $return;
}
| Comment | File | Size | Author |
|---|---|---|---|
| patch.diff | 685 bytes | yaron24 |
Comments
Comment #1
ingo86 commentedThank you. I will add that asap and i will release a new beta.
Comment #2
marvil07 commenteddup of #416308: Vote up/down widget can not display on alternative style