Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
daedf6d7
Commit
daedf6d7
authored
Dec 20, 2010
by
Richard Mansfield
Browse files
Remove edit access link from microheader
Signed-off-by:
Richard Mansfield
<
richard.mansfield@catalyst.net.nz
>
parent
b8fb4cae
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/view/blocks.php
View file @
daedf6d7
...
...
@@ -220,23 +220,6 @@ if ($owner && $viewtype == 'profile') {
if
(
get_config
(
'viewmicroheaders'
))
{
$smarty
->
assign
(
'microheaders'
,
true
);
$smarty
->
assign
(
'microheadertitle'
,
$view
->
display_title
(
true
,
false
));
if
(
$owner
)
{
$nolinks
=
array
(
'profile'
,
'dashboard'
);
if
(
$new
||
in_array
(
$viewtype
,
$nolinks
))
{
$microheaderlinks
=
array
();
}
else
{
$microheaderlinks
=
array
(
array
(
'name'
=>
get_string
(
'editaccess'
,
'view'
),
'url'
=>
get_config
(
'wwwroot'
)
.
'view/access.php?id='
.
$viewid
,
'type'
=>
'edit'
,
),
);
}
$smarty
->
assign
(
'microheaderlinks'
,
$microheaderlinks
);
}
}
$smarty
->
assign
(
'viewtype'
,
$viewtype
);
...
...
htdocs/view/view.php
View file @
daedf6d7
...
...
@@ -234,11 +234,6 @@ if (get_config('viewmicroheaders')) {
'image'
=>
$THEME
->
get_url
(
'images/edit.gif'
),
'url'
=>
get_config
(
'wwwroot'
)
.
'view/blocks.php?id='
.
$viewid
,
),
array
(
'name'
=>
get_string
(
'editaccess'
,
'view'
),
'image'
=>
$THEME
->
get_url
(
'images/icon_access.gif'
),
'url'
=>
get_config
(
'wwwroot'
)
.
'view/access.php?id='
.
$viewid
,
),
);
}
$smarty
->
assign
(
'microheaderlinks'
,
$microheaderlinks
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment