(from feugy on xoops.org forums)
En using a post-installation script
($modversion['onInstall']), the installation log is
excpected to display a message about the success (or
not) of yhis script. In fact, it doesn't display
anything, because the message are stored in the wrong
array. Let's see the bugged code :
/modules/system/modulesadmin/modulesadmin.php lines 466
to 478
// execute module specific install script if any
$install_script = $module->getInfo('onInstall');
if (false != $install_script && trim($install_script)
!= '') {
include_once
XOOPS_ROOT_PATH.'/modules/'.$dirname.'/'.trim($install_script);
if (function_exists('xoops_module_install_'.$dirname)){
$func = 'xoops_module_install_'.$dirname;
if (!$func($module)) {
$msg[] = 'Failed to execute '.$func;
} else {
$msg[] = ''.$func.' executed successfully.';
}
}
}
I guess you've understand... Just add an "s" to the
$msgs array, and it's over.
Logged In: YES
user_id=882380
K, I've applied the patch to CVS. Should be released with 2.0.7