[Git][noosfero/noosfero][master] should load load community templates correctly

Leandro Nunes gitlab at gitlab.com
Mon Jul 13 20:32:52 BRT 2015


Leandro Nunes pushed to branch master at Noosfero / noosfero


Commits:
4fbaaa68 by Leandro Nunes dos Santos at 2015-07-13T20:32:24Z
should load load community templates correctly

- - - - -


1 changed file:

- plugins/statistics/lib/statistics_block.rb


Changes:

=====================================
plugins/statistics/lib/statistics_block.rb
=====================================
--- 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



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/4fbaaa68694fd85d0f63f8f41a0cf420690ee1be
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150713/75523d92/attachment.html>


More information about the Noosfero-dev mailing list