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
b8a15c9f
Commit
b8a15c9f
authored
Feb 08, 2017
by
Robert Lyon
Committed by
Gerrit Code Review
Feb 08, 2017
Browse files
Merge "Bug 1660502: Checking if theme exists when creating user"
parents
4d178a16
98f34182
Changes
1
Show whitespace changes
Inline
Side-by-side
htdocs/lib/view.php
View file @
b8a15c9f
...
...
@@ -579,7 +579,8 @@ class View {
$owner
->
find_by_id
(
$viewdata
[
'owner'
]);
}
$ownerthemedata
=
$owner
->
get
(
'institutiontheme'
);
$ownertheme
=
isset
(
$ownerthemedata
->
basename
)
?
$ownerthemedata
->
basename
:
null
;
$themeoptions
=
get_all_themes
();
$ownertheme
=
(
isset
(
$ownerthemedata
->
basename
)
&&
array_key_exists
(
$ownerthemedata
->
basename
,
$themeoptions
))
?
$ownerthemedata
->
basename
:
null
;
if
(
$accounttheme
=
$owner
->
get_account_preference
(
'theme'
))
{
$accountthemeparts
=
explode
(
'/'
,
$accounttheme
);
$ownertheme
=
$accountthemeparts
[
0
];
...
...
Write
Preview
Supports
Markdown
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