aboutsummaryrefslogtreecommitdiff
path: root/mod/file/pages/file/owner.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-06-26 15:56:35 -0400
committercash <cash.costello@gmail.com>2011-06-26 15:56:35 -0400
commitfe1e3b3923659a4bea73e1596e0ba946f473635c (patch)
treeae8e98a12caa77f78dbfdbc9c492ee808c411c1c /mod/file/pages/file/owner.php
parent3c34ddf59804767e6a7deea3e3ee6c81d4a09601 (diff)
downloadelgg-fe1e3b3923659a4bea73e1596e0ba946f473635c.tar.gz
elgg-fe1e3b3923659a4bea73e1596e0ba946f473635c.tar.bz2
this should update all the core pages and plugins using 'buttons'
Diffstat (limited to 'mod/file/pages/file/owner.php')
-rw-r--r--mod/file/pages/file/owner.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/file/pages/file/owner.php b/mod/file/pages/file/owner.php
index a01e9cd22..2244de095 100644
--- a/mod/file/pages/file/owner.php
+++ b/mod/file/pages/file/owner.php
@@ -13,6 +13,8 @@ $owner = elgg_get_page_owner_entity();
elgg_push_breadcrumb(elgg_echo('file'), "file/all");
elgg_push_breadcrumb($owner->name);
+elgg_register_add_button();
+
$params = array();
if ($owner->guid == elgg_get_logged_in_user_guid()) {
@@ -20,9 +22,8 @@ if ($owner->guid == elgg_get_logged_in_user_guid()) {
$params['filter_context'] = 'mine';
} else if (elgg_instanceof($owner, 'user')) {
// someone else's files
- // do not show button or select a tab when viewing someone else's posts
+ // do not show select a tab when viewing someone else's posts
$params['filter_context'] = 'none';
- $params['buttons'] = '';
} else {
// group files
$params['filter'] = '';