aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/elgglib.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index b39f83417..b71c19f0a 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -211,7 +211,6 @@
$viewtype = $_SESSION['view'];
}
-
if (!isset($CONFIG->views->locations[$view])) {
if (!isset($CONFIG->viewpath)) {
$location = dirname(dirname(dirname(__FILE__))) . "/views/";
@@ -278,7 +277,7 @@
$subtype = $entity->getSubtype();
if (empty($subtype)) { $subtype = $entity_type; }
- if (elgg_view_exists("{$entity_type}/{$subtype}")) {
+ if (elgg_view_exists("{$entity_type}/{$subtype}",$viewtype)) {
return elgg_view("{$entity_type}/{$subtype}",array(
'entity' => $entity,
'full' => $full