Throw an error message when PostgreSQL extension is not loaded into PHP

git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@418091 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
hawk__
2011-08-01 23:07:34 +00:00
parent a8606afaf3
commit 0ec3dc02f2

View File

@@ -12,6 +12,9 @@
*
* This was originally based on usleepless's original 'mysql2pgsql.php' file, many thanks to him
*/
// Check pgsql extension is loaded
if ( !extension_loaded('pgsql') )
wp_die( 'Your PHP installation appears to be missing the PostgreSQL extension which is required by WordPress with PG4WP.' );
// Load up upgrade and install functions as required
if( defined( 'WP_INSTALLING') && WP_INSTALLING)