diff options
author | Cash Costello <cash.costello@gmail.com> | 2013-05-31 07:52:42 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2013-05-31 07:52:42 -0400 |
commit | f90dce8ad3cc15b008f0ce71ce9e93377be06a5b (patch) | |
tree | 98bfff72b0101ca099d1b13d114ac4e397ba1c0b /mod | |
parent | 0cc014239e2f8ee15054e25c68787494459db2bc (diff) | |
download | elgg-f90dce8ad3cc15b008f0ce71ce9e93377be06a5b.tar.gz elgg-f90dce8ad3cc15b008f0ce71ce9e93377be06a5b.tar.bz2 |
Fixes #5572 not including embed link in longtext menu for users who are logged out
Diffstat (limited to 'mod')
-rw-r--r-- | mod/embed/start.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/embed/start.php b/mod/embed/start.php index e14e0efd4..1da35aa46 100644 --- a/mod/embed/start.php +++ b/mod/embed/start.php @@ -14,8 +14,10 @@ elgg_register_event_handler('init', 'system', 'embed_init'); function embed_init() { elgg_extend_view('css/elgg', 'embed/css'); elgg_extend_view('css/admin', 'embed/css'); - - elgg_register_plugin_hook_handler('register', 'menu:longtext', 'embed_longtext_menu'); + + if (elgg_is_logged_in()) { + elgg_register_plugin_hook_handler('register', 'menu:longtext', 'embed_longtext_menu'); + } elgg_register_plugin_hook_handler('register', 'menu:embed', 'embed_select_tab', 1000); // Page handler for the modal media embed |