fixed misplaced ID override in widgets
This commit is contained in:
parent
d16d523b23
commit
65ddf8a99c
@ -92,10 +92,11 @@ function plugin_calendar_widget() {
|
|||||||
// they're located under plugin.PLUGINNAME/lang/LANGID/
|
// they're located under plugin.PLUGINNAME/lang/LANGID/
|
||||||
$lang = lang_load('plugin:calendar');
|
$lang = lang_load('plugin:calendar');
|
||||||
|
|
||||||
$entry['subject'] = $lang['plugin']['calendar']['subject'];
|
$widget = array();
|
||||||
$entry['content'] = '<ul id="widget_calendar"><li>'. generate_calendar($y,$m, $days).'</li></ul>';
|
$widget['subject'] = $lang['plugin']['calendar']['subject'];
|
||||||
|
$widget['content'] = '<ul id="widget_calendar"><li>'. generate_calendar($y,$m, $days).'</li></ul>';
|
||||||
|
|
||||||
return $entry;
|
return $widget;
|
||||||
}
|
}
|
||||||
|
|
||||||
register_widget('calendar', 'Calendar', 'plugin_calendar_widget');
|
register_widget('calendar', 'Calendar', 'plugin_calendar_widget');
|
||||||
|
@ -56,10 +56,11 @@ function plugin_lastentries_widget() {
|
|||||||
|
|
||||||
$string .= '</ul>';
|
$string .= '</ul>';
|
||||||
|
|
||||||
$entry['subject'] = $subject;
|
$widget = array();
|
||||||
$entry['content'] = $string;
|
$widget['subject'] = $subject;
|
||||||
|
$widget['content'] = $string;
|
||||||
|
|
||||||
return $entry;
|
return $widget;
|
||||||
}
|
}
|
||||||
|
|
||||||
register_widget('lastentries', 'LastEntries', 'plugin_lastentries_widget');
|
register_widget('lastentries', 'LastEntries', 'plugin_lastentries_widget');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user