Skip to content

Commit bf2f051

Browse files
committed
Fix #1: Rename Module ID Script misses translation codes
1 parent bfa19b3 commit bf2f051

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

docs/CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
Changelog
22
=========
33

4+
1.0.1 (April 19, 2021)
5+
----------------------
6+
- Fix #1: Rename Module ID Script misses translation codes
47

5-
0.1.0 (August, 08, 2020)
8+
1.0.0 (August 08, 2020)
69
-------------------------
710
- Chg: Added rewrite id script
811
- Chg: Initial commit

docs/rewrite-module-id.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
$fileContent = str_replace($oldModuleId, $newModuleId, $fileContent);
5454
$fileContent = str_replace(ucfirst($oldModuleId), ucfirst($newModuleId), $fileContent);
5555
$fileContent = str_replace(dashesToCamelCase($oldModuleId), dashesToCamelCase($newModuleId), $fileContent);
56+
$fileContent = str_replace(ucfirst(dashesToCamelCase($oldModuleId)), ucfirst(dashesToCamelCase($newModuleId)), $fileContent);
5657
$fileContent = str_replace($oldNamespace, $newNamespace, $fileContent);
5758
file_put_contents($file, $fileContent);
5859
print "Searched&replaced in: " . $file . "\n";

module.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "A very basic module example",
55
"keywords": [
66
],
7-
"version": "1.0",
7+
"version": "1.0.1",
88
"humhub": {
99
"minVersion": "1.2"
1010
},

0 commit comments

Comments
 (0)