diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-19 15:03:28 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-19 15:03:28 +0000 |
commit | eec475fb1272a99134784b18b0451b306c5dbc4a (patch) | |
tree | 80659444c37161e21a24136003e3a255bc075b06 /mod/messageboard/pages/owner.php | |
parent | ee47fbf70fc7f67efde6926237e13fc20a664a72 (diff) | |
download | elgg-eec475fb1272a99134784b18b0451b306c5dbc4a.tar.gz elgg-eec475fb1272a99134784b18b0451b306c5dbc4a.tar.bz2 |
Refs #3158 Fixes #3170 namespaces messageboard plugin page scripts
git-svn-id: http://code.elgg.org/elgg/trunk@8767 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/messageboard/pages/owner.php')
-rw-r--r-- | mod/messageboard/pages/owner.php | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/mod/messageboard/pages/owner.php b/mod/messageboard/pages/owner.php deleted file mode 100644 index 7fd88a9d4..000000000 --- a/mod/messageboard/pages/owner.php +++ /dev/null @@ -1,58 +0,0 @@ -<?php -/** - * Elgg Message board index page - * - * @package MessageBoard - */ - -$page_owner_guid = get_input('page_owner_guid'); -elgg_set_page_owner_guid($page_owner_guid); -$page_owner = elgg_get_page_owner_entity(); -$history_username = get_input('history_username'); -$history_user = get_user_by_username($history_username); - -elgg_push_breadcrumb($page_owner->name, $page_owner->getURL()); - -$options = array( - 'annotations_name' => 'messageboard', - 'guid' => $page_owner_guid, - 'limit' => 10 -); - -if ($history_user) { - $options['annotations_owner_guid'] = $history_user->getGUID(); - $title = elgg_echo('messageboard:owner_history', array($history_user->name, $page_owner->name)); - - if ($page_owner instanceof ElggGroup) { - $mb_url = "messageboard/group/$page_owner->guid/owner"; - } else { - $mb_url = "messageboard/owner/$page_owner->username"; - } -} else { - $title = elgg_echo('messageboard:owner', array($page_owner->name)); - $mb_url = ''; -} - -elgg_push_breadcrumb(elgg_echo('messageboard:board'), $mb_url); - -if ($history_user) { - elgg_push_breadcrumb($history_user->name); -} - -$content = elgg_list_annotations($options); - -if (!$content) { - $content = elgg_echo('messageboard:none'); -} - -$vars = array( - 'filter' => false, - 'buttons' => false, - 'content' => $content, - 'title' => $title, - 'reverse_order_by' => true -); - -$body = elgg_view_layout('content', $vars); - -echo elgg_view_page($title, $body);
\ No newline at end of file |