From d61c1e930a3531036db51af10dde6a99aeb8d5ea Mon Sep 17 00:00:00 2001 From: Ben Chatelain Date: Sun, 23 Jan 2011 15:30:41 -0700 Subject: [PATCH] Fix compile error by making QUERY lowercase (local instead of const) --- lib/jekyll/migrators/wordpress.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jekyll/migrators/wordpress.rb b/lib/jekyll/migrators/wordpress.rb index 3704d3cb..3b05a5ea 100644 --- a/lib/jekyll/migrators/wordpress.rb +++ b/lib/jekyll/migrators/wordpress.rb @@ -21,9 +21,9 @@ module Jekyll # post in wp_posts that has post_status = 'publish'. # This restriction is made because 'draft' posts are not guaranteed to # have valid dates. - QUERY = "select post_title, post_name, post_date, post_content, post_excerpt, ID, guid from #{table_prefix}posts where post_status = 'publish' and post_type = 'post'" + query = "select post_title, post_name, post_date, post_content, post_excerpt, ID, guid from #{table_prefix}posts where post_status = 'publish' and post_type = 'post'" - db[QUERY].each do |post| + db[query].each do |post| # Get required fields and construct Jekyll compatible name title = post[:post_title] slug = post[:post_name]