From: Chuck Scott Date: Tue, 7 Jun 2016 17:09:21 +0000 (-0400) Subject: Made compatible with receint changes to database setup proceedures X-Git-Tag: v1.0.17^2~9 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=a7ba8139c47aba2849679546567b28d02ea474c6;p=WP-Plugins%2Fglm-member-db-events.git Made compatible with receint changes to database setup proceedures --- diff --git a/index.php b/index.php index 87454b0..d9fc27c 100644 --- a/index.php +++ b/index.php @@ -85,9 +85,14 @@ require_once('defines.php'); require_once(ABSPATH . 'wp-includes/pluggable.php'); /* - * Do some checks to make sure the main GLM Member DB is active and of a recceint enough version + * Do some preliminary sanity checks */ +// Check if database version should be defined and it isn't - This would be a plugin/add-on setup issue +if (is_file(GLM_MEMBERS_EVENTS_PLUGIN_PATH.'/setup/databaseScripts/dbVersions.php') && !defined('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION')) { + die('You have database scripts but have not defined a current database version at the top of index.php for this plugin/add-on!'); +} + // Function to generate message regarding main GLM Member DB plugin not installed and active function glmMembersEventsPluginRequired() { echo '