summaryrefslogtreecommitdiffstats
path: root/lib/private/server.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-11-26 12:38:24 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-11-27 11:10:04 +0100
commite1f3abf7a583669ba1fed703365de9e12a76e22c (patch)
tree75cffc34cf486d4b1759160dfb5cd93c4b6f3dd0 /lib/private/server.php
parent3338eede3ccb2ead223a46fd537b7504bb4786e0 (diff)
downloadnextcloud-server-e1f3abf7a583669ba1fed703365de9e12a76e22c.tar.gz
nextcloud-server-e1f3abf7a583669ba1fed703365de9e12a76e22c.zip
Correctly namespace and autoload DatabaseException
Diffstat (limited to 'lib/private/server.php')
-rw-r--r--lib/private/server.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/server.php b/lib/private/server.php
index c413ee8bf6d..cd57d41ce58 100644
--- a/lib/private/server.php
+++ b/lib/private/server.php
@@ -205,7 +205,7 @@ class Server extends SimpleContainer implements IServerContainer {
$factory = new \OC\DB\ConnectionFactory();
$type = $c->getConfig()->getSystemValue('dbtype', 'sqlite');
if (!$factory->isValidType($type)) {
- throw new \DatabaseException('Invalid database type');
+ throw new \OC\DatabaseException('Invalid database type');
}
$connectionParams = $factory->createConnectionParams($c->getConfig());
$connection = $factory->getConnection($type, $connectionParams);