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
50a7d5b1
Commit
50a7d5b1
authored
Oct 05, 2009
by
Nigel McNie
Browse files
Allow the config passed to View::import_from_config to include ownership information.
Signed-off-by:
Nigel McNie
<
nigel@catalyst.net.nz
>
parent
e6cfce65
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/view.php
View file @
50a7d5b1
...
...
@@ -1561,6 +1561,15 @@ class View {
'numcolumns'
=>
$config
[
'numcolumns'
],
'ownerformat'
=>
$config
[
'ownerformat'
],
);
if
(
isset
(
$config
[
'owner'
]))
{
$viewdata
[
'owner'
]
=
$config
[
'owner'
];
}
if
(
isset
(
$config
[
'group'
]))
{
$viewdata
[
'group'
]
=
$config
[
'group'
];
}
if
(
isset
(
$config
[
'institution'
]))
{
$viewdata
[
'institution'
]
=
$config
[
'institution'
];
}
$view
=
View
::
create
(
$viewdata
,
$userid
);
$col
=
1
;
...
...
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