diff --git a/fp-plugins/calendar/plugin.calendar.php b/fp-plugins/calendar/plugin.calendar.php index f8ca5c4..71ffffd 100755 --- a/fp-plugins/calendar/plugin.calendar.php +++ b/fp-plugins/calendar/plugin.calendar.php @@ -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'] = ''; + $widget = array(); + $widget['subject'] = $lang['plugin']['calendar']['subject']; + $widget['content'] = ''; - return $entry; + return $widget; } register_widget('calendar', 'Calendar', 'plugin_calendar_widget'); diff --git a/fp-plugins/lastentries/plugin.lastentries.php b/fp-plugins/lastentries/plugin.lastentries.php index e1fff28..184680a 100755 --- a/fp-plugins/lastentries/plugin.lastentries.php +++ b/fp-plugins/lastentries/plugin.lastentries.php @@ -56,10 +56,11 @@ function plugin_lastentries_widget() { $string .= ''; - $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');