[Pkg-owncloud-commits] [owncloud] 47/67: adjust access constructor to master

David Prévot taffit at moszumanska.debian.org
Fri Jun 27 23:58:16 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 89f26915152e5aaf357b2aa633d5bea954e4bcc2
Author: Arthur Schiwon <blizzz at owncloud.com>
Date:   Wed Jun 25 11:42:15 2014 +0200

    adjust access constructor to master
---
 apps/user_ldap/lib/access.php |  2 +-
 apps/user_ldap/lib/wizard.php | 10 +++++++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/apps/user_ldap/lib/access.php b/apps/user_ldap/lib/access.php
index 9eb5836..ca5d138 100644
--- a/apps/user_ldap/lib/access.php
+++ b/apps/user_ldap/lib/access.php
@@ -835,7 +835,7 @@ class Access extends LDAPUtility implements user\IUserTools {
 		\OCP\Util::writeLog('user_ldap', 'Count filter:  '.print_r($filter, true), \OCP\Util::DEBUG);
 
 		if(is_null($limit)) {
-			$limit = $this->connection->ldapPagingSize;
+			$limit = intval($this->connection->ldapPagingSize);
 		}
 
 		$counter = 0;
diff --git a/apps/user_ldap/lib/wizard.php b/apps/user_ldap/lib/wizard.php
index 1c53a49..42d612f 100644
--- a/apps/user_ldap/lib/wizard.php
+++ b/apps/user_ldap/lib/wizard.php
@@ -1107,7 +1107,15 @@ class Wizard extends LDAPUtility {
 		$con->setConfiguration($this->configuration->getConfiguration());
 		$con->ldapConfigurationActive = true;
 		$con->setIgnoreValidation(true);
-		$ldapAccess = new Access($con, $this->ldap);
+
+		$userManager = new user\Manager(
+			\OC::$server->getConfig(),
+			new FilesystemHelper(),
+			new LogWrapper(),
+			\OC::$server->getAvatarManager(),
+			new \OCP\Image());
+
+		$ldapAccess = new Access($con, $this->ldap, $userManager);
 		return $ldapAccess;
 	}
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list