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/
|
||||
$lang = lang_load('plugin:calendar');
|
||||
|
||||
$entry['subject'] = $lang['plugin']['calendar']['subject'];
|
||||
$entry['content'] = '<ul id="widget_calendar"><li>'. generate_calendar($y,$m, $days).'</li></ul>';
|
||||
$widget = array();
|
||||
$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');
|
||||
|
@ -56,10 +56,11 @@ function plugin_lastentries_widget() {
|
||||
|
||||
$string .= '</ul>';
|
||||
|
||||
$entry['subject'] = $subject;
|
||||
$entry['content'] = $string;
|
||||
$widget = array();
|
||||
$widget['subject'] = $subject;
|
||||
$widget['content'] = $string;
|
||||
|
||||
return $entry;
|
||||
return $widget;
|
||||
}
|
||||
|
||||
register_widget('lastentries', 'LastEntries', 'plugin_lastentries_widget');
|
||||
|
Loading…
x
Reference in New Issue
Block a user