From bd59fd55caede2a13ec00662152e044d2746522c Mon Sep 17 00:00:00 2001 From: Sem Date: Sun, 6 Nov 2011 20:06:26 +0100 Subject: Add/edit accion. --- start.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'start.php') diff --git a/start.php b/start.php index 94a07a35c..c0ed1a0bf 100644 --- a/start.php +++ b/start.php @@ -75,10 +75,11 @@ function videolist_init() { elgg_register_plugin_hook_handler('entity:icon:url', 'user', 'profile_usericon_hook'); // Register actions - elgg_register_action("videolist/add", elgg_get_plugins_path() . "videolist/actions/add.php"); - elgg_register_action("videolist/edit", elgg_get_plugins_path() . "videolist/actions/edit.php"); - elgg_register_action("videolist/tubesearch", elgg_get_plugins_path() . "videolist/actions/tubesearch.php"); - elgg_register_action("videolist/delete", elgg_get_plugins_path() . "videolist/actions/delete.php"); + $actions_path = elgg_get_plugins_path() . "videolist/actions/videolist"; + elgg_register_action("videolist/add", "$actions_path/add.php"); + elgg_register_action("videolist/edit", "$actions_path/edit.php"); + elgg_register_action("videolist/tubesearch", "$actions_path/tubesearch.php"); + elgg_register_action("videolist/delete", "$actions_path/delete.php"); } /** -- cgit v1.2.3