aboutsummaryrefslogtreecommitdiff
path: root/mod/file/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'mod/file/views/default')
-rw-r--r--mod/file/views/default/file/typecloud.php4
-rw-r--r--mod/file/views/default/forms/file/upload.php14
-rw-r--r--mod/file/views/default/object/file.php4
3 files changed, 11 insertions, 11 deletions
diff --git a/mod/file/views/default/file/typecloud.php b/mod/file/views/default/file/typecloud.php
index 4a59d8a7c..0552f7e8e 100644
--- a/mod/file/views/default/file/typecloud.php
+++ b/mod/file/views/default/file/typecloud.php
@@ -26,12 +26,12 @@ function file_type_cloud_get_url($type, $friends) {
}
-$types = elgg_get_array_value('types', $vars, array());
+$types = elgg_extract('types', $vars, array());
if (!$types) {
return true;
}
-$friends = elgg_get_array_value('friends', $vars, false);
+$friends = elgg_extract('friends', $vars, false);
$all = new stdClass;
$all->tag = "all";
diff --git a/mod/file/views/default/forms/file/upload.php b/mod/file/views/default/forms/file/upload.php
index 06b97388b..a96cbaef6 100644
--- a/mod/file/views/default/forms/file/upload.php
+++ b/mod/file/views/default/forms/file/upload.php
@@ -6,13 +6,13 @@
*/
// once elgg_view stops throwing all sorts of junk into $vars, we can use
-$title = elgg_get_array_value('title', $vars, '');
-$desc = elgg_get_array_value('description', $vars, '');
-$tags = elgg_get_array_value('tags', $vars, '');
-$access_id = elgg_get_array_value('access_id', $vars, ACCESS_DEFAULT);
-$container_guid = elgg_get_array_value('container_guid', $vars);
-$guid = elgg_get_array_value('guid', $vars, null);
-$ajax = elgg_get_array_value('ajax', $vars, FALSE);
+$title = elgg_extract('title', $vars, '');
+$desc = elgg_extract('description', $vars, '');
+$tags = elgg_extract('tags', $vars, '');
+$access_id = elgg_extract('access_id', $vars, ACCESS_DEFAULT);
+$container_guid = elgg_extract('container_guid', $vars);
+$guid = elgg_extract('guid', $vars, null);
+$ajax = elgg_extract('ajax', $vars, FALSE);
if ($guid) {
$file_label = elgg_echo("file:replace");
diff --git a/mod/file/views/default/object/file.php b/mod/file/views/default/object/file.php
index 00c777b39..4c38784fc 100644
--- a/mod/file/views/default/object/file.php
+++ b/mod/file/views/default/object/file.php
@@ -5,8 +5,8 @@
* @package ElggFile
*/
-$full = elgg_get_array_value('full', $vars, FALSE);
-$file = elgg_get_array_value('entity', $vars, FALSE);
+$full = elgg_extract('full', $vars, FALSE);
+$file = elgg_extract('entity', $vars, FALSE);
if (!$file) {
return TRUE;