Sources/Subs-Db-mysql.php 1 location
|
@@ 101-108 (lines=8) @@
|
| 98 |
|
* |
| 99 |
|
* @param string $type Indicates which additional file to load. ('extra', 'packages') |
| 100 |
|
*/ |
| 101 |
|
function db_extend($type = 'extra') |
| 102 |
|
{ |
| 103 |
|
global $sourcedir, $db_type; |
| 104 |
|
|
| 105 |
|
require_once($sourcedir . '/Db' . strtoupper($type[0]) . substr($type, 1) . '-' . $db_type . '.php'); |
| 106 |
|
$initFunc = 'db_' . $type . '_init'; |
| 107 |
|
$initFunc(); |
| 108 |
|
} |
| 109 |
|
|
| 110 |
|
/** |
| 111 |
|
* Fix up the prefix so it doesn't require the database to be selected. |
Sources/Subs-Db-postgresql.php 1 location
|
@@ 90-97 (lines=8) @@
|
| 87 |
|
* |
| 88 |
|
* @param string $type Indicates which additional file to load. ('extra', 'packages') |
| 89 |
|
*/ |
| 90 |
|
function db_extend ($type = 'extra') |
| 91 |
|
{ |
| 92 |
|
global $sourcedir, $db_type; |
| 93 |
|
|
| 94 |
|
require_once($sourcedir . '/Db' . strtoupper($type[0]) . substr($type, 1) . '-' . $db_type . '.php'); |
| 95 |
|
$initFunc = 'db_' . $type . '_init'; |
| 96 |
|
$initFunc(); |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
/** |
| 100 |
|
* Fix the database prefix if necessary. |