diff options
Diffstat (limited to 'apps/user_ldap/lib/Command')
-rw-r--r-- | apps/user_ldap/lib/Command/Search.php | 2 | ||||
-rw-r--r-- | apps/user_ldap/lib/Command/SetConfig.php | 2 | ||||
-rw-r--r-- | apps/user_ldap/lib/Command/TestConfig.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/user_ldap/lib/Command/Search.php b/apps/user_ldap/lib/Command/Search.php index e1db3f47448..17e506855b2 100644 --- a/apps/user_ldap/lib/Command/Search.php +++ b/apps/user_ldap/lib/Command/Search.php @@ -102,7 +102,7 @@ class Search extends Command { } protected function execute(InputInterface $input, OutputInterface $output) { - $helper = new Helper(); + $helper = new Helper($this->ocConfig); $configPrefixes = $helper->getServerConfigurationPrefixes(true); $ldapWrapper = new LDAP(); diff --git a/apps/user_ldap/lib/Command/SetConfig.php b/apps/user_ldap/lib/Command/SetConfig.php index a1d5e90f3ed..5188bee1049 100644 --- a/apps/user_ldap/lib/Command/SetConfig.php +++ b/apps/user_ldap/lib/Command/SetConfig.php @@ -57,7 +57,7 @@ class SetConfig extends Command { } protected function execute(InputInterface $input, OutputInterface $output) { - $helper = new Helper(); + $helper = new Helper(\OC::$server->getConfig()); $availableConfigs = $helper->getServerConfigurationPrefixes(); $configID = $input->getArgument('configID'); if(!in_array($configID, $availableConfigs)) { diff --git a/apps/user_ldap/lib/Command/TestConfig.php b/apps/user_ldap/lib/Command/TestConfig.php index 55a834812aa..cd3ecc26d2b 100644 --- a/apps/user_ldap/lib/Command/TestConfig.php +++ b/apps/user_ldap/lib/Command/TestConfig.php @@ -47,7 +47,7 @@ class TestConfig extends Command { } protected function execute(InputInterface $input, OutputInterface $output) { - $helper = new Helper(); + $helper = new Helper(\OC::$server->getConfig()); $availableConfigs = $helper->getServerConfigurationPrefixes(); $configID = $input->getArgument('configID'); if(!in_array($configID, $availableConfigs)) { |