diff options
-rw-r--r-- | lib/Settings/Section.php | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/lib/Settings/Section.php b/lib/Settings/Section.php index 50fec5e..fdc4b6e 100644 --- a/lib/Settings/Section.php +++ b/lib/Settings/Section.php @@ -4,9 +4,9 @@ namespace OCA\OJSXC\Settings; use OCP\IL10N; use OCP\IURLGenerator; -use OCP\Settings\ISection; +use OCP\Settings\IIconSection; -class SectionBase implements ISection +class Section implements IIconSection { /** @var IL10N */ private $l; @@ -14,7 +14,7 @@ class SectionBase implements ISection /** @var IURLGenerator */ private $url; - public function __construct(IL10N $l, IURLGenerator $url) + public function __construct(IURLGenerator $url, IL10N $l) { $this->l = $l; $this->url = $url; @@ -62,14 +62,3 @@ class SectionBase implements ISection return $this->url->imagePath('ojsxc', 'app-black.svg'); } } - -$version = \OCP\Util::getVersion(); -if ($version[0] >= 12) { - class Section extends SectionBase implements \OCP\Settings\IIconSection - { - } -} else { - class Section extends SectionBase - { - } -} |