Fixed confusion with lib directory defines.
authorChuck Scott <cscott@gaslightmedia.com>
Mon, 6 Nov 2017 21:52:00 +0000 (16:52 -0500)
committerChuck Scott <cscott@gaslightmedia.com>
Mon, 6 Nov 2017 21:52:00 +0000 (16:52 -0500)
activate.php
defines.php

index 3fbb7a8..cb91f51 100644 (file)
@@ -58,7 +58,6 @@ class {camelcasePrefix}PluginActivate
 
         // Make sure the current user has this capability
         if (! current_user_can('activate_plugins')) {
-            $this->addNotice("Interesting, you don't have permission to activate plugins.");
             die();
         }
 
index 2295c20..fc103a3 100644 (file)
@@ -66,5 +66,6 @@ define('{definedPrefix}_PLUGIN_CONFIG_PATH', {definedPrefix}_PLUGIN_PATH.'/confi
 // Parameters related to the Main GLM Member DB plugin - Depending on what's going on these may already defined by the main plugin
 $pluginsPath = str_replace({definedPrefix}_PLUGIN_SLUG, '', {definedPrefix}_PLUGIN_PATH);
 define('{definedPrefix}_MAIN_PLUGIN_PATH', $pluginsPath.'/glm-member-db');
-define('{definedPrefix}_PLUGIN_LIB_PATH', {definedPrefix}_MAIN_PLUGIN_PATH.'/lib');
+define('{definedPrefix}_MAIN_PLUGIN_LIB_PATH', {definedPrefix}_MAIN_PLUGIN_PATH.'/lib');
+define('{definedPrefix}_PLUGIN_LIB_PATH', {definedPrefix}_PLUGIN_PATH.'/lib');