Commit 1c319312 authored by Richard Mansfield's avatar Richard Mansfield

Make profile togglepublic form available on blocks.php instead of my views

Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent 9431bcd5
......@@ -215,6 +215,9 @@ $viewtitle = $view->get('title');
$owner = $view->get('owner');
if ($owner && $viewtype == 'profile') {
$viewtitle = get_string('usersprofile', 'mahara', display_name($view->get('owner'), null, true));
if (get_config('allowpublicprofiles')) {
$smarty->assign('togglepublic', togglepublic_form($viewid));
}
}
if (get_config('viewmicroheaders')) {
......
......@@ -53,9 +53,6 @@ foreach ($data->data as &$view) {
if ($view['type'] == 'portfolio' && $tutorgroupdata && empty($view['submittedto'])) {
$view['submitto'] = view_group_submission_form($view['id'], $tutorgroupdata);
}
if ($view['type'] == 'profile' && get_config('allowpublicprofiles')) {
$view['togglepublic'] = togglepublic_form($view['id']);
}
}
$pagination = build_pagination(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