Fix widget scan

This commit is contained in:
Nathan Gray 2016-03-21 16:05:51 +00:00
parent 77624244e6
commit ca0a896fa3

View File

@ -691,11 +691,11 @@ class Etemplate extends Etemplate\Widget\Template
// Try to discover all widgets, as names don't always match tags (eg: listbox is in menupopup) // Try to discover all widgets, as names don't always match tags (eg: listbox is in menupopup)
foreach(scandir($dir=__DIR__ . '/Etemplate/Widget') as $filename) foreach(scandir($dir=__DIR__ . '/Etemplate/Widget') as $filename)
{ {
if(substr($filname, -4) == '.php') if(substr($filename, -4) == '.php')
{ {
try try
{ {
include_once($dir.$filename); include_once($dir.'/'.$filename);
} }
catch(Exception $e) catch(Exception $e)
{ {