From 7e17326c5f0f51a4f2ef290ba4f89cc8b674ae7c Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 14 Feb 2011 15:25:06 +0000 Subject: [PATCH] 2011-02-14 Miguel de Dios * include/functions_db.php: fixed the include of extensions, mysql or postgresql for the api call or Pandora Mobile. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3828 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_db.php | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index a03f93542c..b444c2cf8b 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-02-14 Miguel de Dios + + * include/functions_db.php: fixed the include of extensions, mysql or + postgresql for the api call or Pandora Mobile. + 2011-02-14 Miguel de Dios * include/db/postgresql.php: fixed in function "postgresql_insert_id" the diff --git a/pandora_console/include/functions_db.php b/pandora_console/include/functions_db.php index 42a8f02c99..a14e295876 100644 --- a/pandora_console/include/functions_db.php +++ b/pandora_console/include/functions_db.php @@ -19,17 +19,17 @@ * @subpackage DataBase */ -include_once("include/functions_extensions.php"); +include_once($config['homedir'] . "/include/functions_extensions.php"); function select_db_engine() { global $config; switch ($config["dbtype"]) { case "mysql": - require_once ('include/db/mysql.php'); + require_once ($config['homedir'] . '/include/db/mysql.php'); break; case "postgresql": - require_once ('include/db/postgresql.php'); + require_once ($config['homedir'] . '/include/db/postgresql.php'); break; } }