diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-03 12:10:45 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-03 12:10:45 +0000 |
commit | 4ff61fa6a8c012053659b1723b7dea9d38cd654e (patch) | |
tree | 4931ad21da79286d452c4e3ccbeb542875f9d53e /mod/file | |
parent | 755947e111d89d6babcd0f070d91c2245e22a809 (diff) | |
download | elgg-4ff61fa6a8c012053659b1723b7dea9d38cd654e.tar.gz elgg-4ff61fa6a8c012053659b1723b7dea9d38cd654e.tar.bz2 |
changed elgg_get_plugin_path() to elgg_get_plugins_path()
git-svn-id: http://code.elgg.org/elgg/trunk@8001 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/file')
-rw-r--r-- | mod/file/actions/file/download.php | 2 | ||||
-rw-r--r-- | mod/file/start.php | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/mod/file/actions/file/download.php b/mod/file/actions/file/download.php index 6768bd4b1..d6abb8398 100644 --- a/mod/file/actions/file/download.php +++ b/mod/file/actions/file/download.php @@ -6,6 +6,6 @@ */ // @todo this is here for backwards compatibility (first version of embed plugin?) -$download_page_handler = elgg_get_plugin_path() . 'file/download.php'; +$download_page_handler = elgg_get_plugins_path() . 'file/download.php'; include $download_page_handler; diff --git a/mod/file/start.php b/mod/file/start.php index f60de52ec..4eb67cd32 100644 --- a/mod/file/start.php +++ b/mod/file/start.php @@ -13,7 +13,7 @@ elgg_register_event_handler('init', 'system', 'file_init'); function file_init() { // register a library of helper functions - elgg_register_library('elgg:file', elgg_get_plugin_path() . 'file/lib/file.php'); + elgg_register_library('elgg:file', elgg_get_plugins_path() . 'file/lib/file.php'); // Site navigation $item = new ElggMenuItem('file', elgg_echo('file'), 'pg/file/all'); @@ -50,7 +50,7 @@ function file_init() { elgg_register_plugin_hook_handler('register', 'menu:owner_block', 'file_owner_block_menu'); // Register actions - $action_path = elgg_get_plugin_path() . 'file/actions/file'; + $action_path = elgg_get_plugins_path() . 'file/actions/file'; elgg_register_action("file/upload", "$action_path/upload.php"); elgg_register_action("file/delete", "$action_path/delete.php"); // temporary - see #2010 @@ -85,7 +85,7 @@ function file_page_handler($page) { $page[0] = 'all'; } - $file_dir = elgg_get_plugin_path() . 'file'; + $file_dir = elgg_get_plugins_path() . 'file'; $page_type = $page[0]; switch ($page_type) { |