From 875b7f7c4bd2bb1013b00a0f6fbd12722c690729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gheol=C8=9Ban?= Date: Tue, 28 Feb 2017 12:12:29 +0200 Subject: [PATCH] Resolve symlinks generation for rows in .modman file like: folder/subfolder/*.csv folder/subfolder/ --- modman.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modman.php b/modman.php index 6fcc26a..8e355e2 100644 --- a/modman.php +++ b/modman.php @@ -377,7 +377,7 @@ public function getObjectsPerRow($sClassName) { if (strstr($sLine, '*')) { foreach (glob($this->sModuleDirectory . DIRECTORY_SEPARATOR . $aParameters[0]) as $sFilename) { $sRelativeFilename = substr($sFilename, strlen($this->sModuleDirectory . DIRECTORY_SEPARATOR)); - $sRelativeTarget = str_replace(str_replace('*', '', $aParameters[0]), $aParameters[1], $sRelativeFilename); + $sRelativeTarget = str_replace(substr($aParameters[0], 0, strpos($aParameters[0], '*')), $aParameters[1], $sRelativeFilename); $this->aObjects[] = new $sClassName(array($sRelativeFilename, $sRelativeTarget)); } } else {