|
@@ 146-149 (lines=4) @@
|
| 143 |
|
} |
| 144 |
|
} |
| 145 |
|
Config::save('app', $config, null, App::$primary); |
| 146 |
|
if (file_exists($path . $module . '/install_script.php')) { |
| 147 |
|
$installFunction = include $path . $module . '/install_script.php'; |
| 148 |
|
$installFunction(1, $params); |
| 149 |
|
} |
| 150 |
|
} |
| 151 |
|
|
| 152 |
|
public function unInstall($module, $params = []) { |
|
@@ 181-184 (lines=4) @@
|
| 178 |
|
} |
| 179 |
|
} |
| 180 |
|
Config::save('app', $config, null, App::$primary); |
| 181 |
|
if (file_exists($path . $module . '/uninstall_script.php')) { |
| 182 |
|
$installFunction = include $path . $module . '/uninstall_script.php'; |
| 183 |
|
$installFunction(1, $params); |
| 184 |
|
} |
| 185 |
|
} |
| 186 |
|
|
| 187 |
|
public function addInMenu($items, $appType, $parent = 0) { |