From 2cafed54c48f5f8d69f38092e7ccde89e567f393 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Thu, 27 Sep 2018 13:42:35 -0400 Subject: [PATCH] Cleaned up glmMembersConfigArraySetup() in glmPluginSupport.php. This function is now useable. --- classes/glmPluginSupport.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) mode change 100644 => 100755 classes/glmPluginSupport.php diff --git a/classes/glmPluginSupport.php b/classes/glmPluginSupport.php old mode 100644 new mode 100755 index 3a9f6630..42d1e276 --- a/classes/glmPluginSupport.php +++ b/classes/glmPluginSupport.php @@ -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; } -- 2.17.1