|
@@ -147,7 +147,7 @@ function filedirCopy(string $sourcePath, string $targetPath){
|
|
|
function replaceMacro(string $filePath,string $targetPath,array $macros){
|
|
|
$content = file_get_contents($filePath);
|
|
|
foreach($macros as $key=>$value){
|
|
|
- $content = str_replace($content,$key,$value);
|
|
|
+ $content = str_replace($key,$value,$content);
|
|
|
}
|
|
|
return file_put_contents($targetPath,$content);
|
|
|
}
|