aboutsummaryrefslogtreecommitdiff
path: root/pages/members/search.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-16 02:21:28 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-16 02:21:28 +0000
commit4416d0a3bf5e0fd101d64ecdfebd100a53c10687 (patch)
treebcd6cb8ab54f01db99db7ad328ffbbcf19b7b47e /pages/members/search.php
parent2c443c0f84c10b19324f6be584e46efe71d0bf84 (diff)
downloadelgg-4416d0a3bf5e0fd101d64ecdfebd100a53c10687.tar.gz
elgg-4416d0a3bf5e0fd101d64ecdfebd100a53c10687.tar.bz2
added title parameter to one_sidebar layout
git-svn-id: http://code.elgg.org/elgg/trunk@7642 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'pages/members/search.php')
-rw-r--r--pages/members/search.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/pages/members/search.php b/pages/members/search.php
index f21f72fc4..45df46a76 100644
--- a/pages/members/search.php
+++ b/pages/members/search.php
@@ -8,7 +8,6 @@ if ($vars['search_type'] == 'tag') {
$tag = get_input('tag');
$title = elgg_echo('members:title:searchtag', array($tag));
- $content = elgg_view_title($title);
$options = array();
$options['query'] = $tag;
@@ -18,18 +17,18 @@ if ($vars['search_type'] == 'tag') {
$results = elgg_trigger_plugin_hook('search', 'tags', $options, array());
$count = $results['count'];
$users = $results['entities'];
- $content .= elgg_view_entity_list($users, $count, $offset, $limit, false, false, true);
+ $content = elgg_view_entity_list($users, $count, $offset, $limit, false, false, true);
} else {
$name = get_input('name');
$title = elgg_echo('members:title:searchname', array($name));
- $content = elgg_view_title($title);
elgg_set_context('search');
- $content .= list_user_search($name);
+ $content = list_user_search($name);
}
$params = array(
+ 'title' => $title,
'content' => $content,
'sidebar' => elgg_view('core/members/sidebar'),
);