From 9ce11d138f9868b872fe8206dbc3c2f44723605a Mon Sep 17 00:00:00 2001 From: ewinslow Date: Tue, 15 Feb 2011 01:05:45 +0000 Subject: Fixes #2808: elgg_get_array_value => elgg_extract git-svn-id: http://code.elgg.org/elgg/trunk@8247 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/layout/objects/list/body.php | 10 +++++----- views/default/layout/objects/list/metadata.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'views/default/layout/objects/list') diff --git a/views/default/layout/objects/list/body.php b/views/default/layout/objects/list/body.php index 6cbaa2c20..187cc9690 100644 --- a/views/default/layout/objects/list/body.php +++ b/views/default/layout/objects/list/body.php @@ -19,7 +19,7 @@ $entity = $vars['entity']; -$title_link = elgg_get_array_value('title', $vars, ''); +$title_link = elgg_extract('title', $vars, ''); if ($title_link === '') { if (isset($entity->title)) { $text = $entity->title; @@ -33,11 +33,11 @@ if ($title_link === '') { $title_link = elgg_view('output/url', $params); } -$metadata = elgg_get_array_value('metadata', $vars, ''); -$subtitle = elgg_get_array_value('subtitle', $vars, ''); -$content = elgg_get_array_value('content', $vars, ''); +$metadata = elgg_extract('metadata', $vars, ''); +$subtitle = elgg_extract('subtitle', $vars, ''); +$content = elgg_extract('content', $vars, ''); -$tags = elgg_get_array_value('tags', $vars, ''); +$tags = elgg_extract('tags', $vars, ''); if ($tags !== false) { $tag_text = elgg_view('output/tags', array('tags' => $entity->tags)); if ($tag_text) { diff --git a/views/default/layout/objects/list/metadata.php b/views/default/layout/objects/list/metadata.php index bb708b5ee..3ce3573b9 100644 --- a/views/default/layout/objects/list/metadata.php +++ b/views/default/layout/objects/list/metadata.php @@ -8,7 +8,7 @@ */ $entity = $vars['entity']; -$handler = elgg_get_array_value('handler', $vars, ''); +$handler = elgg_extract('handler', $vars, ''); ?>