swap haystack and needle, as they seem in wrong order for the purpose at hand

This commit is contained in:
Klaus Leithoff 2013-09-02 07:52:57 +00:00
parent 550daca48f
commit d5613a51fe

View File

@ -56,7 +56,7 @@ class etemplate_widget_template extends etemplate_widget
return self::$cache[$name];
}
// Template not found, try again as if $name were a partial name
else if(!$path && strpos('.',$name) === false)
else if(!$path && strpos($name,'.') === false)
{
foreach(self::$cache as $c_name => $c_template)
{