File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# ----- Configuration -------------------------------------------------------------------------------------------
4
4
5
+ // New Module ID in KebabCase (e.g. my-plugin, super-plugin, voting)
5
6
$ newModuleId = "example-basic " ;
6
7
$ newNamespace = 'acmeCorp\humhub\modules\exampleBasic ' ;
7
8
50
51
// Replace in files
51
52
$ fileContent = file_get_contents ($ file );
52
53
$ fileContent = str_replace ($ oldModuleId , $ newModuleId , $ fileContent );
54
+ $ fileContent = str_replace (ucfirst ($ oldModuleId ), ucfirst ($ newModuleId ), $ fileContent );
53
55
$ fileContent = str_replace (dashesToCamelCase ($ oldModuleId ), dashesToCamelCase ($ newModuleId ), $ fileContent );
54
56
$ fileContent = str_replace ($ oldNamespace , $ newNamespace , $ fileContent );
55
57
file_put_contents ($ file , $ fileContent );
You can’t perform that action at this time.
0 commit comments