From 43159995733b7092fba8abf078be2afa0b9fbc13 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 9 Aug 2016 10:11:29 +0200 Subject: [PATCH] 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 --- api/src/Etemplate/Widget/Nextmatch/Accountfilter.php | 2 +- api/src/Etemplate/Widget/Nextmatch/Customfilter.php | 2 +- api/src/Etemplate/Widget/Nextmatch/Filterheader.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/Etemplate/Widget/Nextmatch/Accountfilter.php b/api/src/Etemplate/Widget/Nextmatch/Accountfilter.php index a58b6bb316..a48ad5d621 100644 --- a/api/src/Etemplate/Widget/Nextmatch/Accountfilter.php +++ b/api/src/Etemplate/Widget/Nextmatch/Accountfilter.php @@ -33,4 +33,4 @@ class Accountfilter extends Widget\Taglist $this->attrs['type'] = 'select-account'; } } -Customfilter::registerWidget(__NAMESPACE__.'\\Accountfilter', array('nextmatch-accountfilter')); \ No newline at end of file +Widget::registerWidget(__NAMESPACE__.'\\Accountfilter', array('nextmatch-accountfilter')); \ No newline at end of file diff --git a/api/src/Etemplate/Widget/Nextmatch/Customfilter.php b/api/src/Etemplate/Widget/Nextmatch/Customfilter.php index 7f13cbe5db..4d04e16e7f 100644 --- a/api/src/Etemplate/Widget/Nextmatch/Customfilter.php +++ b/api/src/Etemplate/Widget/Nextmatch/Customfilter.php @@ -79,4 +79,4 @@ class Customfilter extends Widget\Transformer $valid = $value ? $value : null; } } -Customfilter::registerWidget(__NAMESPACE__.'\\Customfilter', array('nextmatch-customfilter')); \ No newline at end of file +Widget::registerWidget(__NAMESPACE__.'\\Customfilter', array('nextmatch-customfilter')); \ No newline at end of file diff --git a/api/src/Etemplate/Widget/Nextmatch/Filterheader.php b/api/src/Etemplate/Widget/Nextmatch/Filterheader.php index 7f7d0a46a9..18d9dce5d8 100644 --- a/api/src/Etemplate/Widget/Nextmatch/Filterheader.php +++ b/api/src/Etemplate/Widget/Nextmatch/Filterheader.php @@ -22,4 +22,4 @@ class Filterheader extends Widget\Taglist { } -Customfilter::registerWidget(__NAMESPACE__.'\\Filterheader', array('nextmatch-filterheader')); \ No newline at end of file +Widget::registerWidget(__NAMESPACE__.'\\Filterheader', array('nextmatch-filterheader')); \ No newline at end of file