From 1ac8dfb651704296797b095c05da4128b9a83abe Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 24 May 2010 16:28:56 +0000 Subject: Blog edit/create form displays correct title. git-svn-id: http://code.elgg.org/elgg/trunk@6176 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/views/default/blog/forms/edit.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'mod/blog') diff --git a/mod/blog/views/default/blog/forms/edit.php b/mod/blog/views/default/blog/forms/edit.php index 2b3366e48..81e4dae44 100644 --- a/mod/blog/views/default/blog/forms/edit.php +++ b/mod/blog/views/default/blog/forms/edit.php @@ -153,7 +153,13 @@ $categories_input = elgg_view('categories', $vars); //$container_guid_input = elgg_view('input/hidden', array('internalname' => 'container_guid', 'value' => $values['container_guid'])); $guid_input = elgg_view('input/hidden', array('internalname' => 'guid', 'value' => $values['guid'])); $forward_input = elgg_view('input/hidden', array('internalname' => 'forward', 'value' => $forward)); -$page_title = elgg_echo('blog:edit') . " " . $values['title']; + +// editing or creating. +if (isset($values['guid'])) { + $page_title = elgg_echo('blog:edit') . ": \"{$values['title']}\""; +} else { + $page_title = elgg_echo('blog:new'); +} // display notice if editing an old revision if (isset($vars['revision']) && $vars['revision'] instanceof ElggAnnotation) { -- cgit v1.2.3