We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5a0f24 commit ab74ee2Copy full SHA for ab74ee2
install/lib/update.lib.php
@@ -476,11 +476,9 @@ function checkAndRenameCustomTemplates($default_prompt='no') {
476
$found_templates = array();
477
foreach ($template_directories as $dir) {
478
if (!is_dir($dir)) { continue; }
479
- $output = array();
480
- exec("find $dir -maxdepth 1 -name \*.master", $output);
481
- foreach ($output as $f) {
482
- if (is_file(trim($f))) {
483
- $found_templates[] = trim($f);
+ foreach (glob("$dir/*.master") as $f) {
+ if (is_file($f)) {
+ $found_templates[] = $f;
484
}
485
486
0 commit comments