summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-01-30 02:31:14 +0100
committerArthur Schiwon <blizzz@owncloud.com>2013-01-30 02:31:14 +0100
commit9f7d7802762000f9dd033f922c9ba2d3b0f3fa79 (patch)
treeccc2fd319abc8327a2d287caa39187a842abb770 /apps
parenta8ac4bdf79b65239c6aeef4e6d0d642bedefc9c3 (diff)
downloadnextcloud-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.php7
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));