From d4ef5c7c98c7a7ae550615d378ebeafc397642c2 Mon Sep 17 00:00:00 2001 From: hawk__ Date: Sun, 4 Apr 2010 22:30:30 +0000 Subject: [PATCH] Improved db.php to remove notices and possible fatal errors git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@225356 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- pg4wp/db.php | 7 +++++++ readme.txt | 1 + 2 files changed, 8 insertions(+) diff --git a/pg4wp/db.php b/pg4wp/db.php index 471b334..dc8ab10 100644 --- a/pg4wp/db.php +++ b/pg4wp/db.php @@ -36,6 +36,13 @@ 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_', ' '', '?>' => '', diff --git a/readme.txt b/readme.txt index 643f5cd..7fffef5 100644 --- a/readme.txt +++ b/readme.txt @@ -50,6 +50,7 @@ There is no screenshot for this plugin == Changelog == +* Improved db.php to remove notices and possible fatal errors * Preliminary support for Wordpress 3.0 * Improved dates functions handling * PG4WP now appears in WordPress control panel and can be enabled/disabled but this has no real effect