From d5613a51fe5ea4460047052e935d056fdfd2346b Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 2 Sep 2013 07:52:57 +0000 Subject: [PATCH] swap haystack and needle, as they seem in wrong order for the purpose at hand --- etemplate/inc/class.etemplate_widget_template.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.etemplate_widget_template.inc.php b/etemplate/inc/class.etemplate_widget_template.inc.php index 5fe3ea7133..910af6e6f5 100644 --- a/etemplate/inc/class.etemplate_widget_template.inc.php +++ b/etemplate/inc/class.etemplate_widget_template.inc.php @@ -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) {