summaryrefslogtreecommitdiffstats
path: root/lib/private/server.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-10-21 22:51:56 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-10-21 22:51:56 +0200
commite30e4ea1cc128231b702697228841c754046261c (patch)
tree9bc2d425abfbdb1f5c33c32b00bc804a934e29af /lib/private/server.php
parent408e0022dd9ae9b3915a7a9e64d6a90b1396a8ef (diff)
downloadnextcloud-server-e30e4ea1cc128231b702697228841c754046261c.tar.gz
nextcloud-server-e30e4ea1cc128231b702697228841c754046261c.zip
php 5.3 compatibility regarding OC\DB\Connection fixed
Diffstat (limited to 'lib/private/server.php')
-rw-r--r--lib/private/server.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/server.php b/lib/private/server.php
index d450907534b..65899f3007e 100644
--- a/lib/private/server.php
+++ b/lib/private/server.php
@@ -5,6 +5,7 @@ namespace OC;
use OC\AppFramework\Http\Request;
use OC\AppFramework\Utility\SimpleContainer;
use OC\Cache\UserCache;
+use OC\DB\ConnectionWrapper;
use OC\Files\Node\Root;
use OC\Files\View;
use OCP\IServerContainer;
@@ -289,7 +290,7 @@ class Server extends SimpleContainer implements IServerContainer {
* @return \OCP\IDBConnection
*/
function getDatabaseConnection() {
- return \OC_DB::getConnection();
+ return new ConnectionWrapper(\OC_DB::getConnection());
}
/**