Commit 459e95ad authored by Nigel McNie's avatar Nigel McNie
Browse files

Use the $title variable we prepared earlier for the page title, which silences...

Use the $title variable we prepared earlier for the page title, which silences a warning when visiting the new post page.
parent 6c29487b
......@@ -64,7 +64,7 @@ if (!$blogpost) {
$tags = array();
$pagetitle = get_string('newblogpost', 'artefact.blog', get_field('artefact', 'title', 'id', $blog));
$focuselement = 'title';
define('TITLE', get_string('newblogpost','artefact.blog'));
define('TITLE', $pagetitle);
}
else {
$blogpostobj = new ArtefactTypeBlogPost($blogpost);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment