diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 7ec3608..d9ba3e3 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,8 +1,11 @@ Changelog ========= +1.0.1 (April 19, 2021) +---------------------- +- Fix #1: Rename Module ID Script misses translation codes -0.1.0 (August, 08, 2020) +1.0.0 (August 08, 2020) ------------------------- - Chg: Added rewrite id script - Chg: Initial commit diff --git a/docs/rewrite-module-id.php b/docs/rewrite-module-id.php index c404914..b6938df 100644 --- a/docs/rewrite-module-id.php +++ b/docs/rewrite-module-id.php @@ -53,6 +53,7 @@ $fileContent = str_replace($oldModuleId, $newModuleId, $fileContent); $fileContent = str_replace(ucfirst($oldModuleId), ucfirst($newModuleId), $fileContent); $fileContent = str_replace(dashesToCamelCase($oldModuleId), dashesToCamelCase($newModuleId), $fileContent); + $fileContent = str_replace(ucfirst(dashesToCamelCase($oldModuleId)), ucfirst(dashesToCamelCase($newModuleId)), $fileContent); $fileContent = str_replace($oldNamespace, $newNamespace, $fileContent); file_put_contents($file, $fileContent); print "Searched&replaced in: " . $file . "\n"; diff --git a/module.json b/module.json index 85d1405..065b2bb 100644 --- a/module.json +++ b/module.json @@ -4,7 +4,7 @@ "description": "A very basic module example", "keywords": [ ], - "version": "1.0", + "version": "1.0.1", "humhub": { "minVersion": "1.2" },