visible effects of the bug:
If a module uses the ContentData function in a nontrivial way (making any changes to the parameter of the function) the results of the changes are visible if you press the "Preview" button in the "Edit Content" area, but they are not visible if you press the "View Site" button in the menu (or just view your site in a browser).
The bug:
The 491 line of the content.functions.php file is:
Code: Select all
$gCms->modules[$key]['object']->ContentData($content);
Code: Select all
$gCms->modules[$key]['object']->ContentData($tpl_source);
Explanation:
The function ContentData (in the line 491) is called inside the definition of the function:
Code: Select all
content_get_template($tpl_name, &$tpl_source, &$smarty_obj)
After fixing the probably-bug:
My problems with implementing a module filtering the content of a page are gone. Now everything works fine.
Marek