During module specific install script, i needed to have
a message feet back.
This hack return message fom the module specific
install script.
In the
modules\system\admin\modulesadmin\modulesadmin.php
programme
Line 470 in 2.0.13 :
Line 287 in 2.2.3.a
I have replaced
if (function_exists('xoops_module_install_'.$dirname)) {
$func = 'xoops_module_install_'.$dirname;
if (!$func($module)) {
$msgs[] = 'Failed to execute '.$func;
} else {
$msgs[] = ''.$func.' executed
successfully.';
}
}
by this code
if (function_exists('xoops_module_install_'.$dirname)) {
$func = 'xoops_module_install_'.$dirname;
$msg_install=$func($module);
if (!$msg_install) {
$msgs[] = 'Failed to execute '.$func;
} else {
$msgs[] = $msg_install.'
'.$func.'
executed successfully.';
}
}
2.0.13\modules\system\admin\modulesadmin\modulesadmin.php
Logged In: YES
user_id=882380
By adding an additional test so the msg is displayed only if
it's a string (and not a boolean), it should be ok.
I'll try that.
Thx
Logged In: YES
user_id=1093822
You the king !
Merci
Logged In: YES
user_id=882380
Done on branch #126903, to be released in 2.0.14/2.2.5