Include PostgreSQL when checking for available database drivers.

Signed-off-by: Brice Maron <brice@bmaron.net>
This commit is contained in:
Daniel Köb 2011-12-30 20:38:56 +01:00 коммит произвёл Brice Maron
Родитель 31663cfff5
Коммит eb4cd86910
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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" );