]> source.dussan.org Git - nextcloud-server.git/commitdiff
Include PostgreSQL when checking for available database drivers.
authorDaniel Köb <daniel.koeb@peony.at>
Fri, 30 Dec 2011 19:38:56 +0000 (20:38 +0100)
committerBrice Maron <brice@bmaron.net>
Fri, 30 Dec 2011 20:09:29 +0000 (21:09 +0100)
Signed-off-by: Brice Maron <brice@bmaron.net>
lib/util.php

index 0f79948bc242689735e533f21231a39985fac807..9cf78da6e90a65f180fd5d234451c5e91e61838d 100644 (file)
@@ -175,8 +175,8 @@ class OC_Util {
                $errors=array();
 
                //check for database drivers
-               if(!is_callable('sqlite_open') and !is_callable('mysql_connect')){
-                       $errors[]=array('error'=>'No database drivers (sqlite or mysql) installed.<br/>','hint'=>'');//TODO: sane hint
+               if(!is_callable('sqlite_open') and !is_callable('mysql_connect') and !is_callable('pg_connect')){
+                       $errors[]=array('error'=>'No database drivers (sqlite, mysql, or postgresql) installed.<br/>','hint'=>'');//TODO: sane hint
                }
                $CONFIG_DBTYPE = OC_Config::getValue( "dbtype", "sqlite" );
                $CONFIG_DBNAME = OC_Config::getValue( "dbname", "owncloud" );