[Pkg-owncloud-commits] [owncloud] 71/134: On clone create a new instance of the Configuration

David Prévot taffit at moszumanska.debian.org
Fri Apr 18 21:44:02 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 b41c1d76553002ac5f9080f435253d6bbb62d635
Author: Arthur Schiwon <blizzz at owncloud.com>
Date:   Fri Mar 21 15:27:51 2014 +0100

    On clone create a new instance of the Configuration
    
    To avide effects on the original instance of Connection when the clone
    is modified, for instance on authentication checks.
---
 apps/user_ldap/lib/connection.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/apps/user_ldap/lib/connection.php b/apps/user_ldap/lib/connection.php
index c4e4efd..abe6b05 100644
--- a/apps/user_ldap/lib/connection.php
+++ b/apps/user_ldap/lib/connection.php
@@ -78,6 +78,8 @@ class Connection extends LDAPUtility {
 		//a cloned instance inherits the connection resource. It may use it,
 		//but it may not disconnect it
 		$this->dontDestruct = true;
+		$this->configuration = new Configuration($this->configPrefix,
+												 !is_null($this->configID));
 	}
 
 	public function __get($name) {

-- 
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