1
Hello !
An easy bug of the 2.0.5.1 version. I don't have download the 2.0.6 version, so perhaps it has already been fixed.
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.
One last thing, I posted a bug report for the XoopsObject class on the 2004/1/4, (
https://xoops.org/modules/newbb/viewtopic.php?topic_id=15332&forum=21) and never get any answers... I've said something wrong ?