diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-11-27 12:14:06 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-11-27 12:14:06 +0100 |
commit | a2172786a8cbdcac58906df03713f21a98694119 (patch) | |
tree | 6aaf9d16185d5ec8e7c85aa4ab1782775a0b222c /lib/private/setup/postgresql.php | |
parent | f52ba9c73c31d9ce4529f8ae657508c9ab984012 (diff) | |
parent | ea3780f91156f9028ba61624e8f940b0d09c0f0f (diff) | |
download | nextcloud-server-a2172786a8cbdcac58906df03713f21a98694119.tar.gz nextcloud-server-a2172786a8cbdcac58906df03713f21a98694119.zip |
Merge pull request #12449 from owncloud/issue/12444-namespace-exceptions
Issue/12444 namespace exceptions
Diffstat (limited to 'lib/private/setup/postgresql.php')
-rw-r--r-- | lib/private/setup/postgresql.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/setup/postgresql.php b/lib/private/setup/postgresql.php index 4d0c9b52a4d..3777d1620bc 100644 --- a/lib/private/setup/postgresql.php +++ b/lib/private/setup/postgresql.php @@ -27,7 +27,7 @@ class PostgreSQL extends AbstractDatabase { $connection = @pg_connect($connection_string); if(!$connection) - throw new \DatabaseSetupException($this->trans->t('PostgreSQL username and/or password not valid'), + throw new \OC\DatabaseSetupException($this->trans->t('PostgreSQL username and/or password not valid'), $this->trans->t('You need to enter either an existing account or the administrator.')); } $e_user = pg_escape_string($this->dbuser); @@ -80,7 +80,7 @@ class PostgreSQL extends AbstractDatabase { $connection_string = "host='$e_host' dbname='$e_dbname' user='$e_user' port='$port' password='$e_password'"; $connection = @pg_connect($connection_string); if(!$connection) { - throw new \DatabaseSetupException($this->trans->t('PostgreSQL username and/or password not valid'), + throw new \OC\DatabaseSetupException($this->trans->t('PostgreSQL username and/or password not valid'), $this->trans->t('You need to enter either an existing account or the administrator.')); } $query = "select count(*) FROM pg_class WHERE relname='".$this->tableprefix."users' limit 1"; |