diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-23 16:33:50 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-23 16:33:50 +0000 |
commit | 21fd3683c1436ad71d01aa2137e8ff6fcf977676 (patch) | |
tree | 47ade8bc2b0749a0b85a718d5727abd92a9c48f0 /engine/lib/elgglib.php | |
parent | 737394eb15a2ef0c1f5a085d7f5958d2f3e66b89 (diff) | |
download | elgg-21fd3683c1436ad71d01aa2137e8ff6fcf977676.tar.gz elgg-21fd3683c1436ad71d01aa2137e8ff6fcf977676.tar.bz2 |
You can now get a Javascript version of any entity
git-svn-id: https://code.elgg.org/elgg/trunk@1069 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r-- | engine/lib/elgglib.php | 3 |
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
|