aboutsummaryrefslogtreecommitdiff
path: root/mod/embed
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-08 20:21:28 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-08 20:21:28 +0000
commitd1fa124d19000e7373fa27f438512332790b2278 (patch)
treed36454750ffc8a10ba782f860d19785d5cda6f60 /mod/embed
parent7b2ca7ed8215e3b32a004be3d870229aeebc738d (diff)
downloadelgg-d1fa124d19000e7373fa27f438512332790b2278.tar.gz
elgg-d1fa124d19000e7373fa27f438512332790b2278.tar.bz2
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
Diffstat (limited to 'mod/embed')
-rw-r--r--mod/embed/views/default/embed/embed.php4
1 files changed, 2 insertions, 2 deletions
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";
}