|
@@ 215-217 (lines=3) @@
|
| 212 |
|
$module->setVar('isactive', 1); |
| 213 |
|
$module->setVar('last_update', time()); |
| 214 |
|
$install_script = $module->getInfo('onInstall'); |
| 215 |
|
if ($install_script && trim($install_script) != '') { |
| 216 |
|
XoopsLoad::loadFile($xoops->path('modules/' . $mod . '/' . trim($install_script))); |
| 217 |
|
} |
| 218 |
|
$func = "xoops_module_pre_install_{$mod}"; |
| 219 |
|
// If pre install function is defined, execute |
| 220 |
|
if (function_exists($func)) { |
|
@@ 495-497 (lines=3) @@
|
| 492 |
|
} else { |
| 493 |
|
// Load module specific install script if any |
| 494 |
|
$uninstall_script = $module->getInfo('onUninstall'); |
| 495 |
|
if ($uninstall_script && trim($uninstall_script) != '') { |
| 496 |
|
XoopsLoad::loadFile($xoops->path('modules/' . $mod . '/' . trim($uninstall_script))); |
| 497 |
|
} |
| 498 |
|
$func = "xoops_module_pre_uninstall_{$mod}"; |
| 499 |
|
// If pre uninstall function is defined, execute |
| 500 |
|
if (function_exists($func)) { |