projects
/
WP-Plugins
/
glm-member-db.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88b4040
)
changing include to include_once in the filter for member categories in fronthooks.php
author
Anthony Talarico
<talarico@gaslightmedia.com>
Tue, 27 Sep 2016 13:27:04 +0000
(09:27 -0400)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Tue, 27 Sep 2016 13:27:04 +0000
(09:27 -0400)
setup/frontHooks.php
patch
|
blob
|
history
diff --git
a/setup/frontHooks.php
b/setup/frontHooks.php
index
a331294
..
bb46342
100644
(file)
--- 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() {