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
02b8e39d
Commit
02b8e39d
authored
Jan 07, 2008
by
Richard Mansfield
Browse files
Don't display Institution Settings heading on edit user page when there are no institutions
parent
999f5d66
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/admin/users/edit.php
View file @
02b8e39d
...
...
@@ -418,6 +418,7 @@ if ($suspended) {
}
$smarty
->
assign
(
'suspendform'
,
$suspendform
);
$smarty
->
assign
(
'siteform'
,
$siteform
);
$smarty
->
assign
(
'institutions'
,
count
(
$allinstitutions
)
>
1
);
$smarty
->
assign
(
'institutionform'
,
$institutionform
);
if
(
$id
!=
$USER
->
get
(
'id'
)
&&
is_null
(
$USER
->
get
(
'parentuser'
)))
{
...
...
htdocs/theme/default/templates/admin/users/edit.tpl
View file @
02b8e39d
...
...
@@ -16,8 +16,10 @@
{
$suspendform
}
<h3>
{
str
tag
=
"siteaccountsettings"
section
=
"admin"
}
</h3>
{
$siteform
}
{
if
(
$institutions
)
}
<h3>
{
str
tag
=
"institutionsettings"
section
=
"admin"
}
</h3>
{
$institutionform
}
{/
if
}
</div>
{
include
file
=
"columnfullend.tpl"
}
{
include
file
=
"footer.tpl"
}
...
...
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