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:
@@ -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
|
Reference in New Issue
Block a user