Commit 6ad736c6 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix profile view microheader links on view/view, view/blocks



Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 997ff23e
......@@ -197,17 +197,7 @@ if (get_config('viewmicroheaders')) {
if ($owner) {
if ($viewtype == 'profile') {
$microheaderlinks = array(
array(
'name' => get_string('viewmyprofilepage'),
'url' => get_config('wwwroot') . 'user/view.php',
),
array(
'name' => get_string('editmyprofile', 'artefact.internal'),
'url' => get_config('wwwroot') . 'artefact/internal/index.php',
'type' => 'edit',
),
);
$microheaderlinks = array();
}
else if ($new) {
$microheaderlinks = array();
......
......@@ -200,15 +200,10 @@ if (get_config('viewmicroheaders')) {
if ($viewtype == 'profile') {
$microheaderlinks = array(
array(
'name' => get_string('editmyprofilepage'),
'name' => get_string('editcontent', 'view'),
'url' => get_config('wwwroot') . 'view/blocks.php?profile=1',
'type' => 'edit',
),
array(
'name' => get_string('editmyprofile', 'artefact.internal'),
'url' => get_config('wwwroot') . 'artefact/internal/index.php',
'type' => 'edit',
),
);
}
else if ($new) {
......
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