aboutsummaryrefslogtreecommitdiff
path: root/views/default/layout/shells/content/header.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/layout/shells/content/header.php')
-rw-r--r--views/default/layout/shells/content/header.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/views/default/layout/shells/content/header.php b/views/default/layout/shells/content/header.php
index 92456bac4..7a3ab1ae9 100644
--- a/views/default/layout/shells/content/header.php
+++ b/views/default/layout/shells/content/header.php
@@ -15,9 +15,9 @@ if (isset($vars['header_override'])) {
return true;
}
-$context = elgg_get_array_value('context', $vars, elgg_get_context());
+$context = elgg_extract('context', $vars, elgg_get_context());
if ($context) {
- $title = elgg_get_array_value('title', $vars, '');
+ $title = elgg_extract('title', $vars, '');
if (!$title) {
$title = elgg_echo($context);
}
@@ -32,7 +32,7 @@ if ($context) {
} else {
$guid = elgg_get_logged_in_user_guid();
}
- $new_link = elgg_get_array_value('new_link', $vars, "pg/$context/add/$guid/");
+ $new_link = elgg_extract('new_link', $vars, "pg/$context/add/$guid/");
$params = array(
'href' => $new_link = elgg_normalize_url($new_link),
'text' => elgg_echo("$context:add"),