aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-04 11:22:39 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-04 11:22:39 +0000
commit51f65f6debcb86ed5b329aa79bf571d60f587468 (patch)
tree08d05fa080385a5421602af9b49d879ff3b2bbd3 /engine
parent7d846c7536b7bf4091de37372e7ea1928c94bbc8 (diff)
downloadelgg-51f65f6debcb86ed5b329aa79bf571d60f587468.tar.gz
elgg-51f65f6debcb86ed5b329aa79bf571d60f587468.tar.bz2
Added contentWrapper view
git-svn-id: https://code.elgg.org/elgg/trunk@3063 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/elgglib.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 3b7735f9f..4aa0983db 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -620,18 +620,21 @@
$subtype = $entity->getSubtype();
if (empty($subtype)) { $subtype = $entity_type; }
-
+
+ $contents = '';
if (elgg_view_exists("{$entity_type}/{$subtype}")) {
- return elgg_view("{$entity_type}/{$subtype}",array(
+ $contents = elgg_view("{$entity_type}/{$subtype}",array(
'entity' => $entity,
'full' => $full
), $bypass, $debug);
- } else {
- return elgg_view("{$entity_type}/default",array(
+ }
+ if (empty($contents)) {
+ $contents = elgg_view("{$entity_type}/default",array(
'entity' => $entity,
'full' => $full
), $bypass, $debug);
- }
+ }
+ return $contents;
}
/**