Skip to content

Commit b857e7e

Browse files
haszihaszi
andauthored
Define GLOB_BRACE if it is not defined (#126)
Closes #39. Define GLOB_BRACE if it is not defined. Fix typo in directory path string. --------- Co-authored-by: haszi <[email protected]>
1 parent bfa76b3 commit b857e7e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

configure.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ function getFileModificationHistory(): array {
689689

690690
echo "Iterating over extension specific version files... ";
691691
if ($ac["GENERATE"] != "no") {
692-
$globdir = dirname($ac["GENERATE"]) . "/{../,./}versions.xml";
692+
$globdir = dirname($ac["GENERATE"]) . "/{../../}versions.xml";
693693
}
694694
else {
695695
if (file_exists($ac['rootdir'] . '/en/trunk')) {
@@ -699,6 +699,9 @@ function getFileModificationHistory(): array {
699699
}
700700
$globdir .= "/*/*/versions.xml";
701701
}
702+
if (!defined('GLOB_BRACE')) {
703+
define('GLOB_BRACE', 0);
704+
}
702705
foreach(glob($globdir, GLOB_BRACE) as $file) {
703706
if($tmp->load($file)) {
704707
foreach($tmp->getElementsByTagName("function") as $function) {

0 commit comments

Comments
 (0)