From d1fa124d19000e7373fa27f438512332790b2278 Mon Sep 17 00:00:00 2001 From: brettp Date: Tue, 8 Jun 2010 20:21:28 +0000 Subject: Fixing embed uploads that the previous commit to fix embed view overrides broke. git-svn-id: http://code.elgg.org/elgg/trunk@6404 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/embed/views/default/embed/embed.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/embed/views') diff --git a/mod/embed/views/default/embed/embed.php b/mod/embed/views/default/embed/embed.php index b071eef0f..68c7cd5f5 100644 --- a/mod/embed/views/default/embed/embed.php +++ b/mod/embed/views/default/embed/embed.php @@ -54,7 +54,7 @@ if (!$sections) { $content .= $tabs_html; // build the items and layout. - if ($active_section != 'upload' || array_key_exists($active_section, $sections)) { + if ($active_section == 'upload' || array_key_exists($active_section, $sections)) { $section_info = $sections[$active_section]; $layout = isset($section_info['layout']) ? $section_info['layout'] : 'list'; @@ -75,7 +75,7 @@ if (!$sections) { } elseif ($embed_info = trigger_plugin_hook('embed_get_items', $active_section, $params, array('items' => array(), 'count' => 0))) { // check if we have an override for this section type. $view = "embed/$active_section/item/$layout"; - + if (!elgg_view_exists($view)) { $view = "embed/item/$layout"; } -- cgit v1.2.3