diff options
author | sualko <klaus@jsxc.org> | 2018-08-24 17:08:19 +0300 |
---|---|---|
committer | sualko <klaus@jsxc.org> | 2018-08-24 17:08:19 +0300 |
commit | 72152ef04366bfc10e14bc890d76fc664d15e80e (patch) | |
tree | 63c573e3ee66219672dc52f068870bb05a3132dd /lib | |
parent | 1f4d5102e2334700b2b1aa545040d64ed577e9c3 (diff) |
remove deprecated code from settings section
Diffstat (limited to 'lib')
-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 - { - } -} |