File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ function replaceCodes(array $list): Generator
108
108
109
109
if (false === $ previewMode ) {
110
110
api_replace_terms_in_content ("/courses/ $ currentDirectory/ " , "/courses/ $ newDirectory/ " );
111
- api_replace_terms_in_content ("cidReq= $ currentCode " , "cidReq= $ newCode " );
111
+ api_replace_terms_in_content ("cidReq= $ currentCode& " , "cidReq= $ newCode& " );
112
112
} else {
113
113
yield " Content replacement not executed: previewMode=true " ;
114
114
}
@@ -119,7 +119,7 @@ function replaceCodes(array $list): Generator
119
119
120
120
if (false === $ previewMode && true === $ updateFilesAndDirs ) {
121
121
exec ('find ' .$ coursePath .$ currentDirectory .'/document/ -type f -name "*.html" -exec sed -i ' ."'s#/courses/ $ currentDirectory/#/courses/ $ newDirectory/#g' {} + " );
122
- exec ('find ' .$ coursePath .$ currentDirectory .'/document/ -type f -name "*.html" -exec sed -i ' ."'s#cidReq= $ currentCode#cidReq= $ newCode#g' {} + " );
122
+ exec ('find ' .$ coursePath .$ currentDirectory .'/document/ -type f -name "*.html" -exec sed -i ' ."'s#cidReq= $ currentCode& #cidReq=$ newCode& #g' {} + " );
123
123
} else {
124
124
yield " File changes ignored (variable updateFilesAndDirs set to false) " ;
125
125
}
You can’t perform that action at this time.
0 commit comments