aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/river.php2
-rw-r--r--mod/twitter/start.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/river.php b/engine/lib/river.php
index 80925a21d..55d1c783a 100644
--- a/engine/lib/river.php
+++ b/engine/lib/river.php
@@ -537,7 +537,7 @@ function elgg_river_init() {
$item = new ElggMenuItem('activity', elgg_echo('activity'), 'activity');
elgg_register_menu_item('site', $item);
- add_widget_type('river_widget', elgg_echo('river:widget:title'), elgg_echo('river:widget:description'));
+ elgg_register_widget_type('river_widget', elgg_echo('river:widget:title'), elgg_echo('river:widget:description'));
}
elgg_register_event_handler('init', 'system', 'elgg_river_init');
diff --git a/mod/twitter/start.php b/mod/twitter/start.php
index ca30f0c38..c40f933c7 100644
--- a/mod/twitter/start.php
+++ b/mod/twitter/start.php
@@ -10,5 +10,5 @@ register_elgg_event_handler('init', 'system', 'twitter_init');
function twitter_init() {
elgg_extend_view('css/elgg', 'twitter/css');
- add_widget_type('twitter', elgg_echo('twitter:title'), elgg_echo('twitter:info'));
+ elgg_register_widget_type('twitter', elgg_echo('twitter:title'), elgg_echo('twitter:info'));
}