From d06f87fadb1b88f8ae251ada0461dd2cebf84a00 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 4 Apr 2008 17:36:44 +0000 Subject: Blog edit updates git-svn-id: https://code.elgg.org/elgg/trunk@408 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/views/default/blog/forms/edit.php | 15 +++++++++++---- mod/blog/views/default/object/blog.php | 16 ++++++++++++++++ 2 files changed, 27 insertions(+), 4 deletions(-) (limited to 'mod/blog/views/default') diff --git a/mod/blog/views/default/blog/forms/edit.php b/mod/blog/views/default/blog/forms/edit.php index fb069961b..ff8ae8767 100644 --- a/mod/blog/views/default/blog/forms/edit.php +++ b/mod/blog/views/default/blog/forms/edit.php @@ -13,12 +13,12 @@ */ // Set title, form destination - if (isset($vars['object'])) { + if (isset($vars['entity'])) { $title = sprintf(elgg_echo("blog:editpost"),$object->title); $action = "blog/edit"; - $title = $vars['object']->title; - $body = $vars['object']->description; - $tags = $vars['object']->tags; + $title = $vars['entity']->title; + $body = $vars['entity']->description; + $tags = $vars['entity']->tags; } else { $title = elgg_echo("blog:addpost"); $action = "blog/add"; @@ -76,6 +76,13 @@ ?>

+

diff --git a/mod/blog/views/default/object/blog.php b/mod/blog/views/default/object/blog.php index b136267d7..6fcf041ba 100644 --- a/mod/blog/views/default/object/blog.php +++ b/mod/blog/views/default/object/blog.php @@ -44,6 +44,22 @@ ?>

+ canEdit()) { + ?> + + + $vars['entity'])); + + ?> +