]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixing embed uploads that the previous commit to fix embed view overrides broke.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 8 Jun 2010 20:21:28 +0000 (20:21 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 8 Jun 2010 20:21:28 +0000 (20:21 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6404 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/embed/views/default/embed/embed.php

index b071eef0f6de28ab49b89948b4b968ecde86dbe7..68c7cd5f58adbeae7eda1df581fc139333b272bf 100644 (file)
@@ -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";
                        }