Commit 06486d22 authored by Francois Marier's avatar Francois Marier Committed by Gerrit Code Review
Browse files

Merge "Ignore hidden theme directories (bug #868851)"

parents 1f82f266 b4afc891
......@@ -712,7 +712,7 @@ function get_all_theme_objects() {
throw new SystemException('Unable to read theme directory '.$themebase);
}
while (false !== ($subdir = readdir($themedir))) {
if ($subdir != "." && $subdir != ".." && is_dir($themebase . $subdir)) {
if (substr($subdir, 0, 1) != "." && is_dir($themebase . $subdir)) {
// is the theme directory name valid?
if (!Theme::name_is_valid($subdir)) {
log_warn(get_string('themenameinvalid', 'error', $subdir));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment