Skip to content

Commit

Permalink
Define GLOB_BRACE if it is not defined
Browse files Browse the repository at this point in the history
Closes #39.
Define GLOB_BRACE if it is not defined.
Fix typo in directory path string.
  • Loading branch information
haszi committed May 17, 2024
1 parent dce7ce1 commit 25026bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion configure.php
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ function getFileModificationHistory(): array {

echo "Iterating over extension specific version files... ";
if ($ac["GENERATE"] != "no") {
$globdir = dirname($ac["GENERATE"]) . "/{../,./}versions.xml";
$globdir = dirname($ac["GENERATE"]) . "/{../../}versions.xml";
}
else {
if (file_exists($ac['rootdir'] . '/en/trunk')) {
Expand All @@ -698,6 +698,9 @@ function getFileModificationHistory(): array {
}
$globdir .= "/*/*/versions.xml";
}
if (!defined('GLOB_BRACE')) {
GLOB_BRACE = 0;
}
foreach(glob($globdir, GLOB_BRACE) as $file) {
if($tmp->load($file)) {
foreach($tmp->getElementsByTagName("function") as $function) {
Expand Down

0 comments on commit 25026bd

Please sign in to comment.