Page 1 of 1

GetTemplateFromFile bug

Posted: Thu Nov 01, 2007 1:45 am
by Augustas
Hi,

There is a variable name mistake in the file
/lib/classes/module_support/modtemplates.inc.php  line 78

I think instead of

Code: Select all

$ok = (strpos($tpl_name, '..') === false);
it should be

Code: Select all

$ok = (strpos($template_name, '..') === false);
I get the following error:
Notice: Undefined variable: tpl_name in C:\EasyPHP\www\mps-cmsms\lib\classes\module_support\modtemplates.inc.php on line 78

when I call

Code: Select all

$this->GetTemplateFromFile('templatename');