Skip to content

Commit

Permalink
Merge branch 'MDL-58833-master' of git://github.com/andrewnicols/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed May 10, 2017
2 parents a5ea94d + 89ab164 commit cb04995
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions admin/tool/templatelibrary/classes/api.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ public static function list_templates($component = '', $search = '', $themename
// Look at all the templates dirs for subsystems. // Look at all the templates dirs for subsystems.
$subsystems = core_component::get_core_subsystems(); $subsystems = core_component::get_core_subsystems();
foreach ($subsystems as $subsystem => $dir) { foreach ($subsystems as $subsystem => $dir) {
if (empty($dir)) {
continue;
}
$dir .= '/templates'; $dir .= '/templates';
if (is_dir($dir)) { if (is_dir($dir)) {
$dirs = mustache_template_finder::get_template_directories_for_component('core_' . $subsystem, $themename); $dirs = mustache_template_finder::get_template_directories_for_component('core_' . $subsystem, $themename);
Expand Down

0 comments on commit cb04995

Please sign in to comment.