From da340978d524473a9b7b9cf8c6fc17b755a84681 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sat, 13 Jan 2007 00:07:40 +0000 Subject: [PATCH] Need to return the value too, to use it sometimes. --- lib/dmllib.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/dmllib.php b/lib/dmllib.php index fb8bf2e64c..d8669915f6 100644 --- a/lib/dmllib.php +++ b/lib/dmllib.php @@ -1822,13 +1822,15 @@ function configure_dbconnection() { } /** - * This internal function sets the proper value for $CFG->dbfamily based on $CFG->dbtype + * This internal function sets and returns the proper value for $CFG->dbfamily based on $CFG->dbtype * It's called by configure_dbconnection() and at install time. Shouldn't be used * in other places. Code should rely on dbfamily to perform conditional execution * instead of using dbtype directly. This allows quicker adoption of different * drivers going against the same DB backend. * * This function must contain the init code needed for each dbtype supported. + * + * return string dbfamily value (mysql, postgres, oracle, mssql) */ function set_dbfamily() { @@ -1859,6 +1861,8 @@ function set_dbfamily() { $CFG->dbfamily='oracle'; break; } + + return $CFG->dbfamily; } /** -- 2.39.5