use Etemplate\Widget::registerWidget, not some third class extended from Etemplate\Widget, as that might screw up autoloading if it happes to create a circle

This commit is contained in:
Ralf Becker 2016-08-09 10:11:29 +02:00
parent 7822f84943
commit 4315999573
3 changed files with 3 additions and 3 deletions

View File

@ -33,4 +33,4 @@ class Accountfilter extends Widget\Taglist
$this->attrs['type'] = 'select-account'; $this->attrs['type'] = 'select-account';
} }
} }
Customfilter::registerWidget(__NAMESPACE__.'\\Accountfilter', array('nextmatch-accountfilter')); Widget::registerWidget(__NAMESPACE__.'\\Accountfilter', array('nextmatch-accountfilter'));

View File

@ -79,4 +79,4 @@ class Customfilter extends Widget\Transformer
$valid = $value ? $value : null; $valid = $value ? $value : null;
} }
} }
Customfilter::registerWidget(__NAMESPACE__.'\\Customfilter', array('nextmatch-customfilter')); Widget::registerWidget(__NAMESPACE__.'\\Customfilter', array('nextmatch-customfilter'));

View File

@ -22,4 +22,4 @@ class Filterheader extends Widget\Taglist
{ {
} }
Customfilter::registerWidget(__NAMESPACE__.'\\Filterheader', array('nextmatch-filterheader')); Widget::registerWidget(__NAMESPACE__.'\\Filterheader', array('nextmatch-filterheader'));