Added a special test to allow PG4WP's db.php to be "loaded" by WordPress

git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@206782 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
hawk__
2010-02-16 22:25:22 +00:00
parent 28aa96d34a
commit df22e2a96e

View File

@@ -8,6 +8,8 @@ Author: Hawk__
Author URI: http://www.hawkix.net
License: GPLv2 or newer.
*/
if( !defined('PG4WP_ROOT'))
{
// You can choose the driver to load here
define('DB_DRIVER', 'pgsql'); // 'pgsql' or 'mysql' are supported for now
@@ -39,3 +41,5 @@ $replaces = array(
'?>' => '',
);
eval( str_replace( array_keys($replaces), array_values($replaces), file_get_contents(ABSPATH.'/wp-includes/wp-db.php')));
} // Protection against multiple loading