]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Deprecated fix:
authorPaul <tacid@tacid.kiev.ua>
Tue, 29 Jan 2013 16:58:56 +0000 (18:58 +0200)
committerPaul <tacid@tacid.kiev.ua>
Tue, 29 Jan 2013 16:58:56 +0000 (18:58 +0200)
context parameters for elgg_register_widget_type() should be passed as an array()

start.php

index 5590544b8ad73bf248ebde3245e28633fafea943..27b6f980269040e1dfecd1df46d7c86c1a331a5d 100644 (file)
--- a/start.php
+++ b/start.php
@@ -75,7 +75,7 @@ function event_calendar_init() {
        }
 
        //add a widget
-       elgg_register_widget_type('event_calendar',elgg_echo("event_calendar:widget_title"),elgg_echo('event_calendar:widget:description'), 'all,groups');
+       elgg_register_widget_type('event_calendar',elgg_echo("event_calendar:widget_title"),elgg_echo('event_calendar:widget:description'),array('all','dashboard'));
 
        // add the event calendar group tool option
        $event_calendar_group_default = elgg_get_plugin_setting('group_default', 'event_calendar');