From: Chuck Scott Date: Tue, 26 Jan 2016 16:01:57 +0000 (-0500) Subject: Now allowing db updates to happen at any time, not just when activating X-Git-Tag: v1.1.0^2~12 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=0cb6430bb408af4622724d7c4528524dbab65faf;p=WP-Plugins%2Fglm-member-db.git Now allowing db updates to happen at any time, not just when activating --- diff --git a/classes/glmPluginSupport.php b/classes/glmPluginSupport.php index 5161382a..c06d73fe 100644 --- a/classes/glmPluginSupport.php +++ b/classes/glmPluginSupport.php @@ -359,7 +359,7 @@ class GlmPluginSupport } else { if ($option == 'install') { - $this->addNotice('The '.$a['name'].' plugin/add-on has been reactivated using the existing database tables.'); +// was always displaying since adding 'install' to the controllers call $this->addNotice('The '.$a['name'].' plugin/add-on has been reactivated using the existing database tables.'); } $db_setup_status = true; } diff --git a/controllers/admin.php b/controllers/admin.php index f32a4b33..0e69c3e0 100644 --- a/controllers/admin.php +++ b/controllers/admin.php @@ -129,7 +129,7 @@ class glmMembersAdmin extends GlmPluginSupport $this->config = $config; // Check the database - allow installation of tables for a new add-on - if (!$this->checkDatabase()) { + if (!$this->checkDatabase('install')) { die('Database check failure'); } diff --git a/controllers/front.php b/controllers/front.php index b1239470..fb895117 100644 --- a/controllers/front.php +++ b/controllers/front.php @@ -53,7 +53,7 @@ class glmMembersFront extends GlmPluginSupport $this->config = $config; // Check the database - allow installation of tables for a new add-on - if (!$this->checkDatabase()) { + if (!$this->checkDatabase('install')) { die('Database check failure'); }