From 64f32ec1460e19159867b47d212f8a3f115502ff Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Wed, 20 Feb 2013 14:50:03 -0300 Subject: [PATCH] do not set macros if there is no environment --- lib/noosfero/plugin/manager.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/noosfero/plugin/manager.rb b/lib/noosfero/plugin/manager.rb index febb117..0d3bd94 100644 --- a/lib/noosfero/plugin/manager.rb +++ b/lib/noosfero/plugin/manager.rb @@ -6,7 +6,7 @@ class Noosfero::Plugin::Manager def initialize(environment, context) @environment = environment @context = context - Environment.macros = {environment.id => {}} + Environment.macros = {environment.id => {}} unless environment.nil? end delegate :each, :to => :enabled_plugins -- libgit2 0.21.2