Skip to content

Commit

Permalink
Fix #1: Rename Module ID Script misses translation codes
Browse files Browse the repository at this point in the history
  • Loading branch information
luke- committed Apr 19, 2021
1 parent bfa19b3 commit bf2f051
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions docs/rewrite-module-id.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "A very basic module example",
"keywords": [
],
"version": "1.0",
"version": "1.0.1",
"humhub": {
"minVersion": "1.2"
},
Expand Down

0 comments on commit bf2f051

Please sign in to comment.