From: Anthony Talarico Date: Tue, 27 Sep 2016 13:27:04 +0000 (-0400) Subject: changing include to include_once in the filter for member categories in fronthooks.php X-Git-Tag: v2.7.0^2~17^2~9 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=4aabe830279cfefaac74e6fbe7373e6fe273384b;p=WP-Plugins%2Fglm-member-db.git changing include to include_once in the filter for member categories in fronthooks.php --- diff --git a/setup/frontHooks.php b/setup/frontHooks.php index a331294c..bb463420 100644 --- a/setup/frontHooks.php +++ b/setup/frontHooks.php @@ -266,8 +266,8 @@ function glm_members_only_template( $template ) { * */ add_filter('member_categories', function(){ - include GLM_MEMBERS_PLUGIN_CLASS_PATH . '/data/dataCategories.php'; - $categories = new GlmDataCategories($this->wpdb, $this->config); + include_once GLM_MEMBERS_PLUGIN_CLASS_PATH . '/data/dataCategories.php'; + $categories = new GlmDataCategories( $this->wpdb, $this->config ); return $categories->getListSortedParentChild(); }); add_filter('glm_associate_config', function() {