Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit b72b725

Browse files
committed
setting the appropriate directory separator to match what is returned by the iterator
1 parent 8cfa071 commit b72b725

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/lib/generator.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function generate() {
4646
foreach($objects as $name => $object) {
4747

4848
// clean-up the file name and make sure it's not one of the pattern lab files or to be ignored
49-
$fileName = str_replace(__DIR__."/../../source/","",$name);
49+
$fileName = str_replace(__DIR__."/../../source".DIRECTORY_SEPARATOR,"",$name);
5050
if (($fileName[0] != "_") && (!in_array($object->getExtension(),$this->ie)) && (!in_array($object->getFilename(),$this->id))) {
5151

5252
// catch directories that have the ignored dir in their path

0 commit comments

Comments
 (0)