' . "\n"
@@ -1235,12 +1221,10 @@ class Generator
*/
public static function getSupportedDatatypes($selected): string
{
- global $dbi;
-
// NOTE: the SELECT tag is not included in this snippet.
$retval = '';
- foreach ($dbi->types->getColumns() as $key => $value) {
+ foreach ($GLOBALS['dbi']->types->getColumns() as $key => $value) {
if (is_array($value)) {
$retval .= '