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:
@@ -12,6 +12,9 @@
|
|||||||
*
|
*
|
||||||
* This was originally based on usleepless's original 'mysql2pgsql.php' file, many thanks to him
|
* 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
|
// Load up upgrade and install functions as required
|
||||||
if( defined( 'WP_INSTALLING') && WP_INSTALLING)
|
if( defined( 'WP_INSTALLING') && WP_INSTALLING)
|
||||||
|
Reference in New Issue
Block a user