From fc67a511585087af31c5463590957c0e3f6ef645 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Mon, 6 Nov 2017 16:52:00 -0500 Subject: [PATCH] Fixed confusion with lib directory defines. --- activate.php | 1 - defines.php | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/activate.php b/activate.php index 3fbb7a8..cb91f51 100644 --- a/activate.php +++ b/activate.php @@ -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(); } diff --git a/defines.php b/defines.php index 2295c20..fc103a3 100644 --- a/defines.php +++ b/defines.php @@ -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'); -- 2.17.1