fixes registering of theming settings where server return OC_Defaults instead of ThemingDefaults

This commit is contained in:
Arthur Schiwon 2016-08-22 12:02:06 +02:00
parent 8b117ee0d7
commit a065fee3ff
No known key found for this signature in database
GPG key ID: 7424F1874854DF23

View file

@ -29,20 +29,21 @@ use OCP\IConfig;
use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\Settings\ISettings;
use \OC_Defaults;
class Admin implements ISettings {
/** @var IConfig */
private $config;
/** @var IL10N */
private $l;
/** @var ThemingDefaults */
/** @var ThemingDefaults|OC_Defaults */
private $themingDefaults;
/** @var IURLGenerator */
private $urlGenerator;
public function __construct(IConfig $config,
IL10N $l,
ThemingDefaults $themingDefaults,
OC_Defaults $themingDefaults,
IURLGenerator $urlGenerator) {
$this->config = $config;
$this->l = $l;