aboutsummaryrefslogtreecommitdiff
path: root/mod/blog
diff options
context:
space:
mode:
Diffstat (limited to 'mod/blog')
-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) {