diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-19 14:58:46 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-19 14:58:46 +0000 |
commit | ee47fbf70fc7f67efde6926237e13fc20a664a72 (patch) | |
tree | f1c5430539b3acf9dfb708595f42f29f57aa17de /mod/file/view.php | |
parent | 52f127f23c21675ff7e0d35f1a94741c77e3ed52 (diff) | |
download | elgg-ee47fbf70fc7f67efde6926237e13fc20a664a72.tar.gz elgg-ee47fbf70fc7f67efde6926237e13fc20a664a72.tar.bz2 |
Refs #3158 namespace file plugin's page scripts
git-svn-id: http://code.elgg.org/elgg/trunk@8766 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/file/view.php')
-rw-r--r-- | mod/file/view.php | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/mod/file/view.php b/mod/file/view.php deleted file mode 100644 index 1d7c27337..000000000 --- a/mod/file/view.php +++ /dev/null @@ -1,35 +0,0 @@ -<?php -/** - * View a file - * - * @package ElggFile - */ - -$file = get_entity(get_input('guid')); - -$owner = elgg_get_page_owner_entity(); - -elgg_push_breadcrumb(elgg_echo('file'), 'file/all'); - -$crumbs_title = $owner->name; -if (elgg_instanceof($owner, 'group')) { - elgg_push_breadcrumb($crumbs_title, "file/group/$owner->guid/owner"); -} else { - elgg_push_breadcrumb($crumbs_title, "file/owner/$owner->username"); -} - -$title = $file->title; - -elgg_push_breadcrumb($title); - -$content = elgg_view_entity($file, true); -$content .= elgg_view_comments($file); - -$body = elgg_view_layout('content', array( - 'content' => $content, - 'title' => $title, - 'filter' => '', - 'header' => '', -)); - -echo elgg_view_page($title, $body); |