aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/views
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-24 16:28:56 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-24 16:28:56 +0000
commit1ac8dfb651704296797b095c05da4128b9a83abe (patch)
treecde26c2114e221637f64b441000ad7c0300c3ed9 /mod/blog/views
parent2629f186bb9af7dabf1413e4d5184c7ca617af64 (diff)
downloadelgg-1ac8dfb651704296797b095c05da4128b9a83abe.tar.gz
elgg-1ac8dfb651704296797b095c05da4128b9a83abe.tar.bz2
Blog edit/create form displays correct title.
git-svn-id: http://code.elgg.org/elgg/trunk@6176 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog/views')
-rw-r--r--mod/blog/views/default/blog/forms/edit.php8
1 files changed, 7 insertions, 1 deletions
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) {