Commit 265ebecc authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Always show blog copying option in blog/blogpost block config form (bug 3391)


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 0baab830
......@@ -99,9 +99,7 @@ class PluginBlocktypeBlog extends PluginBlocktype {
// blogs
if (empty($configdata['artefactid']) || $blog->get('owner') == $USER->get('id')) {
$elements[] = self::artefactchooser_element((isset($configdata['artefactid'])) ? $configdata['artefactid'] : null, $istemplate);
if ($istemplate) {
$elements[] = PluginArtefactBlog::block_advanced_options_element($configdata, 'blog');
};
$elements[] = PluginArtefactBlog::block_advanced_options_element($configdata, 'blog');
}
else {
$elements[] = array(
......
......@@ -127,9 +127,7 @@ class PluginBlocktypeBlogpost extends PluginBlocktype {
// blogs
if (empty($configdata['artefactid']) || $blog->get('owner') == $USER->get('id')) {
$elements[] = self::artefactchooser_element((isset($configdata['artefactid'])) ? $configdata['artefactid'] : null);
if ($istemplate) {
$elements[] = PluginArtefactBlog::block_advanced_options_element($configdata, 'blogpost');
};
$elements[] = PluginArtefactBlog::block_advanced_options_element($configdata, 'blogpost');
}
else {
$elements[] = array(
......
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