Browse Source

Remove submodule part of module name in get_module_class_name

Allows to check if module is installed with submodule type.
Required to allow push submodules as mains for Box.
tags/v1.6.5
Adam Bukowski 6 years ago
parent
commit
5b2de150c2
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      include/module_manager.php

+ 4
- 0
include/module_manager.php View File

@@ -483,6 +483,10 @@ class ModuleManager {
}
public static final function get_module_class_name($module) {
$submodule_delimiter = strpos($module, '#');
if ($submodule_delimiter) {
$module = substr($module, 0, $submodule_delimiter);
}
return str_replace('/', '_', $module);
}


Loading…
Cancel
Save