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
8ea6b177
Commit
8ea6b177
authored
Jun 12, 2009
by
Nigel McNie
Browse files
get_themes() now looks for themeconfig.php and reads displayname.
parent
56c5b53c
Changes
1
Show whitespace changes
Inline
Side-by-side
htdocs/lib/mahara.php
View file @
8ea6b177
...
...
@@ -498,12 +498,10 @@ function get_themes() {
}
while
(
false
!==
(
$subdir
=
readdir
(
$themedir
)))
{
if
(
$subdir
!=
"."
&&
$subdir
!=
".."
&&
is_dir
(
$themebase
.
$subdir
))
{
$config_path
=
$themebase
.
$subdir
.
'/config.php'
;
$config_path
=
$themebase
.
$subdir
.
'/
theme
config.php'
;
if
(
is_readable
(
$config_path
))
{
require
(
$config_path
);
if
(
isset
(
$theme
->
name
))
{
$themes
[
$subdir
]
=
$theme
->
name
;
}
$themes
[
$subdir
]
=
isset
(
$theme
->
displayname
)
?
$theme
->
displayname
:
$subdir
;
}
}
}
...
...
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