Cleaned up glmMembersConfigArraySetup() in glmPluginSupport.php.
authorChuck Scott <cscott@gaslightmedia.com>
Thu, 27 Sep 2018 17:42:35 +0000 (13:42 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Thu, 27 Sep 2018 17:42:35 +0000 (13:42 -0400)
This function is now useable.

classes/glmPluginSupport.php [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 3a9f663..42d1e27
@@ -65,7 +65,7 @@ class GlmPluginSupport
 
     }
 
-    /*
+    /*echo 1;
      * Check if this is a second call to the activation hook by WordPress to activate this plugin.
      *
      * (Yea, I know that's stupid behavior, but there's nothing I can do about it.)
@@ -168,7 +168,7 @@ return; // Off for now ** Need to make this switchable in management
                     if (isset($gitParts[2])) {
                         $gitBranch[$a['slug']]['branch'] = $gitParts[2];
                     }
-
+                    echo 1;
                     // [3] should be name of feature
                     if (isset($gitParts[3])) {
                         $gitBranch[$a['slug']]['feature'] = $gitParts[3];
@@ -339,7 +339,7 @@ function glmMembersConfigArraySetup( $configTable, $configNumbTable = false, $co
     if (!is_array($configTable) || count($configTable) == 0) {
         return false;
     }
-echo 1;
+
     // Build base array
     $conf = array();
     foreach ($configTable as $key=>$descr) {
@@ -350,7 +350,7 @@ echo 1;
             'selected' => false
         );
     }
-echo 2;
+
     // If name->number array add that data
     if (is_array($configNumbTable) && count($configNumbTable) > 0) {
         foreach ($configNumbTable as $name=>$key) {
@@ -368,7 +368,7 @@ echo 2;
             }
         }
     }
-echo 3;
+
     return $conf;
 
 }