Now allowing db updates to happen at any time, not just when activating
authorChuck Scott <cscott@gaslightmedia.com>
Tue, 26 Jan 2016 16:01:57 +0000 (11:01 -0500)
committerChuck Scott <cscott@gaslightmedia.com>
Tue, 26 Jan 2016 16:01:57 +0000 (11:01 -0500)
classes/glmPluginSupport.php
controllers/admin.php
controllers/front.php

index 5161382..c06d73f 100644 (file)
@@ -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;
                 }
index f32a4b3..0e69c3e 100644 (file)
@@ -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');
         }
 
index b123947..fb89511 100644 (file)
@@ -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');
         }