From 4fbaaa68694fd85d0f63f8f41a0cf420690ee1be Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Mon, 13 Jul 2015 20:32:24 -0300 Subject: [PATCH] should load load community templates correctly --- plugins/statistics/lib/statistics_block.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/statistics/lib/statistics_block.rb b/plugins/statistics/lib/statistics_block.rb index c74a564..65d5554 100644 --- a/plugins/statistics/lib/statistics_block.rb +++ b/plugins/statistics/lib/statistics_block.rb @@ -61,7 +61,7 @@ class StatisticsBlock < Block end def templates - Community.templates(environment) + self.environment.community_templates end def is_template_counter_active? template_id -- libgit2 0.21.2