GetTemplateFromFile bug

A place to discuss the testing process in beta cycles or against SVN for the CMS Made Simple CORE package.
Locked
User avatar
Augustas
Forum Members
Forum Members
Posts: 241
Joined: Wed Oct 17, 2007 6:09 pm
Location: the world

GetTemplateFromFile bug

Post 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');
http://FollowTheRoad.com/ - living on the road...
http://www.kligys.com/ - asmeninis blog'as...
Locked

Return to “[locked] Quality Assurance”