Code Duplication    Length = 8-9 lines in 2 locations

Sources/Subs-Db-mysql.php 1 location

@@ 117-125 (lines=9) @@
114
 *
115
 * @param string $type Indicates which additional file to load. ('extra', 'packages')
116
 */
117
function db_extend($type = 'extra')
118
{
119
	global $sourcedir;
120
121
	// we force the MySQL files as nothing syntactically changes with MySQLi
122
	require_once($sourcedir . '/Db' . strtoupper($type[0]) . substr($type, 1) . '-mysql.php');
123
	$initFunc = 'db_' . $type . '_init';
124
	$initFunc();
125
}
126
127
/**
128
 * Fix up the prefix so it doesn't require the database to be selected.

Sources/Subs-Db-postgresql.php 1 location

@@ 104-111 (lines=8) @@
101
 *
102
 * @param string $type Indicates which additional file to load. ('extra', 'packages')
103
 */
104
function db_extend($type = 'extra')
105
{
106
	global $sourcedir, $db_type;
107
108
	require_once($sourcedir . '/Db' . strtoupper($type[0]) . substr($type, 1) . '-' . $db_type . '.php');
109
	$initFunc = 'db_' . $type . '_init';
110
	$initFunc();
111
}
112
113
/**
114
 * Fix the database prefix if necessary.