1
I had this bug for many years. when i update a module and module block
template file name had been changed, It will not updated. Only Altsys by GIJ could update the module block template. Finally today i found the bug in core 256 It is a very old bug unsolved for about 7 years. in xoops256/modules/system/admin/modulesadmin/main.php around line 615 one previous core developer forgot to update the tpl_file so you should add the tpl_file like this:
$tplfile_new->setVar('tpl_source', $content, true);
$tplfile_new->setVar('tpl_desc', $block['description'], true);
$tplfile_new->setVar('tpl_lastmodified', time());
$tplfile_new->setVar('tpl_lastimported', 0);
$tplfile_new->setVar('tpl_file', $block['template'], true); // irmtfan bug fix: block template file will not updated after update the module
if (!$tplfile_handler->insert($tplfile_new)) {
$msgs[] = ' '.sprintf(_AM_SYSTEM_MODULES_TEMPLATE_UPDATE_ERROR, "".$block['template']."").'';
} else {
I should test in Xoops26 but i think 26 has not this bug. please somebody send it to bug tracker. Edit: it is bug in xoops26 too. in modules/system/class/module.php around line 682:
$tplfile_new->setVar('tpl_source', $template, true);
$tplfile_new->setVar('tpl_desc', $block['description'], true);
$tplfile_new->setVar('tpl_lastmodified', time());
$tplfile_new->setVar('tpl_lastimported', 0);
$tplfile_new->setVar('tpl_file', $block['template'], true); // irmtfan bug fix: block template file will not updated after update the module