diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2013-01-30 02:31:14 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2013-01-30 02:31:14 +0100 |
commit | 9f7d7802762000f9dd033f922c9ba2d3b0f3fa79 (patch) | |
tree | ccc2fd319abc8327a2d287caa39187a842abb770 /apps | |
parent | a8ac4bdf79b65239c6aeef4e6d0d642bedefc9c3 (diff) | |
download | nextcloud-server-9f7d7802762000f9dd033f922c9ba2d3b0f3fa79.tar.gz nextcloud-server-9f7d7802762000f9dd033f922c9ba2d3b0f3fa79.zip |
LDAP: use consolidated method for determining config prefix
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_ldap/ajax/getNewServerConfigPrefix.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/user_ldap/ajax/getNewServerConfigPrefix.php b/apps/user_ldap/ajax/getNewServerConfigPrefix.php index 1a5f78cf214..17e78f87072 100644 --- a/apps/user_ldap/ajax/getNewServerConfigPrefix.php +++ b/apps/user_ldap/ajax/getNewServerConfigPrefix.php @@ -26,12 +26,7 @@ OCP\JSON::checkAdminUser(); OCP\JSON::checkAppEnabled('user_ldap'); OCP\JSON::callCheck(); -$query = \OCP\DB::prepare(' - SELECT DISTINCT `configkey` - FROM `*PREFIX*appconfig` - WHERE `configkey` LIKE ? -'); -$serverConnections = $query->execute(array('%ldap_login_filter'))->fetchAll(); +$serverConnections = \OCA\user_ldap\lib\Helper::getServerConfigurationPrefixes(); sort($serverConnections); $lk = array_pop($serverConnections); $ln = intval(str_replace('s', '', $lk)); |