diff options
Diffstat (limited to 'mod/file/edit.php')
| -rw-r--r-- | mod/file/edit.php | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/mod/file/edit.php b/mod/file/edit.php deleted file mode 100644 index da22cacdf..000000000 --- a/mod/file/edit.php +++ /dev/null @@ -1,37 +0,0 @@ -<?php -/** - * Edit a file - * - * @package ElggFile - */ - -gatekeeper(); - -$file_guid = (int) get_input('guid'); -$file = get_entity($file_guid); -if (!$file) { - forward(); -} - -elgg_push_breadcrumb(elgg_echo('file'), "pg/file/all/"); -elgg_push_breadcrumb($file->title, $file->getURL()); -elgg_push_breadcrumb(elgg_echo('file:edit')); - -elgg_set_page_owner_guid($file->getContainerGUID()); - -if (!$file->canEdit()) { - forward(); -} - -$title = elgg_echo('file:edit'); -$content = elgg_view_title($title); -$content .= elgg_view("file/upload", array('entity' => $file)); - -$body = elgg_view_layout('content', array( - 'content' => $content, - 'title' => $title, - 'filter' => '', - 'header' => '', -)); - -echo elgg_view_page($title, $body); |
