Commit c1151cf3 authored by Robert Lyon's avatar Robert Lyon

Bug 1731043: Remove backport mistake to 16.10

The blogpost delete form had $title variable in 16.10 but the
changepoststatus form did not.

So gives undefined variable warning on journal list page

behatnotneeded

Change-Id: I562a51687f95cb996a2da023ab52b846c26a1c8a
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 0213229c
......@@ -1133,7 +1133,7 @@ class ArtefactTypeBlogPost extends ArtefactType {
$post = new ArtefactTypeBlogPost($id);
$published = $post->published;
}
$title = hsc($title);
if ($published) {
$strchangepoststatus = '<span class="icon icon-times icon-lg left text-danger" role="presentation" aria-hidden="true"></span> ' .get_string('unpublish', 'artefact.blog');
}
......
Markdown is supported
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