[Pkg-owncloud-commits] [owncloud] 08/15: Ensure there is a connection object within \OC_DB::enableCaching()

David Prévot taffit at moszumanska.debian.org
Thu Nov 13 18:17:34 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 042bfabf646a1da5c64d1d29dde22829a311648b
Author: Thomas Müller <thomas.mueller at tmit.eu>
Date:   Mon Nov 10 16:17:08 2014 +0100

    Ensure there is a connection object within \OC_DB::enableCaching()
---
 lib/private/db.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/private/db.php b/lib/private/db.php
index 93d8973..d58f7c3 100644
--- a/lib/private/db.php
+++ b/lib/private/db.php
@@ -423,10 +423,11 @@ class OC_DB {
 	 * @param bool $enabled
 	 */
 	static public function enableCaching($enabled) {
+		$connection = self::getConnection();
 		if ($enabled) {
-			self::$connection->enableQueryStatementCaching();
+			$connection->enableQueryStatementCaching();
 		} else {
-			self::$connection->disableQueryStatementCaching();
+			$connection->disableQueryStatementCaching();
 		}
 	}
 

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