Reworked db.php a bit to remove some more errors

git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@225359 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
hawk__
2010-04-04 22:59:10 +00:00
parent d4ef5c7c98
commit 03581e4a52

View File

@@ -37,10 +37,6 @@ require_once( PG4WP_ROOT.'/driver_'.DB_DRIVER.'.php');
// This loads up the wpdb class applying the appropriate changes to it, DON'T TOUCH !
$replaces = array(
'define( ' => '// define( ',
' OBJECT_K' => ' \'OBJECT_K\'',
' OBJECT' => ' \'OBJECT\'',
' ARRAY_A' => ' \'ARRAY_A\'',
' ARRAY_N' => ' \'ARRAY_N\'',
'class wpdb' => 'class wpdb2',
'new wpdb' => 'new wpdb2',
'mysql_' => 'wpsql_',
@@ -48,5 +44,5 @@ $replaces = array(
'?>' => '',
);
eval( str_replace( array_keys($replaces), array_values($replaces), file_get_contents(ABSPATH.'/wp-includes/wp-db.php')));
require_once( ABSPATH.'/wp-includes/wp-db.php');
} // Protection against multiple loading