From: Chuck Scott Date: Mon, 6 Nov 2017 21:52:00 +0000 (-0500) Subject: Fixed confusion with lib directory defines. X-Git-Tag: v1.0.2^2~2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=fc67a511585087af31c5463590957c0e3f6ef645;p=WP-Plugins%2Fglm-member-db-sample.git Fixed confusion with lib directory defines. --- 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');