diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-29 13:35:16 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-29 13:35:16 +0000 |
commit | 8f7a86ebae5f6fd3f64f976a83cfc6712e083c2a (patch) | |
tree | 0b8c15acc290f4c5e2c34f105df63e9ede224a6a /mod/file/edit.php | |
parent | 81a0698f97c9e92639109caa5215a503b823b968 (diff) | |
download | elgg-8f7a86ebae5f6fd3f64f976a83cfc6712e083c2a.tar.gz elgg-8f7a86ebae5f6fd3f64f976a83cfc6712e083c2a.tar.bz2 |
starting to update the file plugin to use the new html/css
git-svn-id: http://code.elgg.org/elgg/trunk@7737 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/file/edit.php')
-rw-r--r-- | mod/file/edit.php | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/mod/file/edit.php b/mod/file/edit.php index 961332420..da22cacdf 100644 --- a/mod/file/edit.php +++ b/mod/file/edit.php @@ -1,38 +1,37 @@ <?php /** - * Elgg file saver + * Edit a file * * @package ElggFile */ -require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); - gatekeeper(); -// Render the file upload page - -$file_guid = (int) get_input('file_guid'); +$file_guid = (int) get_input('guid'); $file = get_entity($file_guid); if (!$file) { forward(); } -// Set the page owner -$page_owner = elgg_get_page_owner(); -if (!$page_owner) { - $container_guid = $file->container_guid; - if ($container_guid) { - set_page_owner($container_guid); - } -} +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'); -$area1 = elgg_view_title($title); -$area1 .= elgg_view("file/upload", array('entity' => $file)); +$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' => '', +)); -$body = elgg_view_layout('one_column_with_sidebar', array('content' => $area1)); echo elgg_view_page($title, $body); |