Summary:
processTemplateFromDatabase error
Detailed Description:
hello,
I don't know if this is really a bug but in the file "modtemplates.inc.php"
(/classes/internal/module_support/), there are 3 functions at the end
(processTemplate, processTemplateFromData and processTemplateFromDatabase).
the first and second try to initialise smarty variable with
$modinstance->GetActionTemplateObject() and, if null returned, initialize smarty
variable with: Smarty_CMS::get_instance()...
but the 3rd, processTemplateFromDatabase, does'nt check if smarty is correctly
initialized.... the line:
if( !$smarty ) $smarty = Smarty_CMS::get_instance();
is missing and some modules (like FormBrowser) end with a fatal error: Call to a
member function fetch() on null ....
adding this line in the function solved my problem.... but it is not, for me, a
good idea to modify files from the core....
best regards,
steph