aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cabo <david@calibea.com>2011-09-27 12:50:37 +0200
committerDavid Cabo <david@calibea.com>2011-09-27 12:50:37 +0200
commit30c2435b2d5f7895774a2e479cec9c82583991f4 (patch)
tree900a583f1326d46c0835b915975fa07e9f5631b6
parentc71551992bf3bf6204f298777bc04cc355ef4613 (diff)
Fix wrong variable name, fixes #197
-rw-r--r--app/controllers/general_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb
index 0bd9ac87a..194a1cec0 100644
--- a/app/controllers/general_controller.rb
+++ b/app/controllers/general_controller.rb
@@ -71,7 +71,7 @@ class GeneralController < ApplicationController
medium_cache
@feed_autodetect = []
@feed_url = "#{MySociety::Config.get('BLOG_FEED', '')}?lang=#{self.locale_from_params()}"
- if not feed_url.empty?
+ if not @feed_url.empty?
content = open(@feed_url).read
@data = XmlSimple.xml_in(content)
@channel = @data['channel'][0]