From 03581e4a522ebb84007c2b82a9575cfa8e2b5f39 Mon Sep 17 00:00:00 2001 From: hawk__ Date: Sun, 4 Apr 2010 22:59:10 +0000 Subject: [PATCH] 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 --- pg4wp/db.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pg4wp/db.php b/pg4wp/db.php index dc8ab10..de99e29 100644 --- a/pg4wp/db.php +++ b/pg4wp/db.php @@ -20,7 +20,7 @@ define( 'PG4WP_ROOT', dirname( __FILE__).'/plugins/pg4wp'); // Set this to 'true' and check that `pg4wp` is writable if you want debug logs to be written define( 'PG4WP_DEBUG', false); // If you just want to log queries that generate errors, leave PG4WP_DEBUG to "false" -// and set this to true +// and set this to true define( 'PG4WP_LOG_ERRORS', true); // Logs are put in the pg4wp directory @@ -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 \ No newline at end of file