Commit 4ad41ebb authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Remove double heading on leave group page

parent 82c7d73d
......@@ -35,7 +35,7 @@ $returnto = param_alpha('returnto', 'mygroups');
define('GROUP', $groupid);
$group = group_current_group();
define('TITLE', get_string('leavespecifiedgroup', 'group', $group->name));
define('TITLE', $group->name);
if (!group_user_access($group->id)) {
throw new AccessDeniedException(get_string('notamember', 'group'));
......@@ -76,7 +76,7 @@ $form = pieform(array(
));
$smarty = smarty();
$smarty->assign('heading', TITLE);
$smarty->assign('subheading', get_string('leavespecifiedgroup', 'group', $group->name));
$smarty->assign('form', $form);
$smarty->assign('message', $views ? get_string('groupconfirmleavehasviews', 'group') : get_string('groupconfirmleave', 'group'));
$smarty->assign('group', $group);
......
......@@ -2,8 +2,7 @@
{include file="sidebar.tpl"}
{include file="columnleftstart.tpl"}
<h2>{$heading|escape}</h2>
{include file="group/simplegroup.tpl" group=$group}
<h3>{$subheading|escape}</h3>
<div class="message">
<p>{$message}</p>
{$form}
......
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