diff options
Diffstat (limited to 'mod/groups')
-rw-r--r-- | mod/groups/icon.php | 2 | ||||
-rw-r--r-- | mod/groups/start.php | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/mod/groups/icon.php b/mod/groups/icon.php index 59247e9f8..c72b5f308 100644 --- a/mod/groups/icon.php +++ b/mod/groups/icon.php @@ -28,7 +28,7 @@ if ($filehandler->open("read")) { } if (!$success) { - $location = elgg_get_plugin_path() . "groups/graphics/default{$size}.jpg"; + $location = elgg_get_plugins_path() . "groups/graphics/default{$size}.jpg"; $contents = @file_get_contents($location); } diff --git a/mod/groups/start.php b/mod/groups/start.php index cb062bd46..58c47c305 100644 --- a/mod/groups/start.php +++ b/mod/groups/start.php @@ -15,7 +15,7 @@ elgg_register_event_handler('init', 'system', 'groups_fields_setup', 10000); */ function groups_init() { - elgg_register_library('elgg:groups', elgg_get_plugin_path() . 'groups/lib/groups.php'); + elgg_register_library('elgg:groups', elgg_get_plugins_path() . 'groups/lib/groups.php'); // register group entities for search register_entity_type('group', ''); @@ -34,7 +34,7 @@ function groups_init() { register_page_handler('groupicon', 'groups_icon_handler'); // Register some actions - $action_base = elgg_get_plugin_path() . 'groups/actions'; + $action_base = elgg_get_plugins_path() . 'groups/actions'; elgg_register_action("groups/edit", "$action_base/edit.php"); elgg_register_action("groups/delete", "$action_base/delete.php"); elgg_register_action("groups/join", "$action_base/join.php"); @@ -245,7 +245,7 @@ function groups_icon_handler($page) { set_input('size', $page[1]); } // Include the standard profile index - $plugin_dir = elgg_get_plugin_path(); + $plugin_dir = elgg_get_plugins_path(); include("$plugin_dir/groups/icon.php"); } @@ -503,14 +503,14 @@ elgg_register_event_handler('init', 'system', 'discussion_init'); */ function discussion_init() { - elgg_register_library('elgg:discussion', elgg_get_plugin_path() . 'groups/lib/discussion.php'); + elgg_register_library('elgg:discussion', elgg_get_plugins_path() . 'groups/lib/discussion.php'); register_page_handler('discussion', 'discussion_page_handler'); register_entity_url_handler('discussion_override_topic_url', 'object', 'groupforumtopic'); //register_extender_url_handler('group_topicpost_url', 'annotation', 'group_topic_post'); - $action_base = elgg_get_plugin_path() . 'groups/actions/discussion'; + $action_base = elgg_get_plugins_path() . 'groups/actions/discussion'; elgg_register_action('discussion/save', "$action_base/save.php"); elgg_register_action('discussion/delete', "$action_base/delete.php"); |