aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks/themes.rake
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-10-17 14:04:58 +0100
committerLouise Crow <louise.crow@gmail.com>2012-10-17 14:04:58 +0100
commita4927fc05a710cee6217d8a40ce925d5f894fd8f (patch)
tree83909e1d903afbf49d50182af79a679442632975 /lib/tasks/themes.rake
parentcc27fe66a13fe1504711c64ce5530a1c178e907d (diff)
parentcc7bc36d5748c9baa0cfd8e44395923cc5792f32 (diff)
Merge branch 'release/0.6.7' into wdtk
Conflicts: config/general.yml-example
Diffstat (limited to 'lib/tasks/themes.rake')
-rw-r--r--lib/tasks/themes.rake8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/tasks/themes.rake b/lib/tasks/themes.rake
index 6eb64b4b0..f06cf6312 100644
--- a/lib/tasks/themes.rake
+++ b/lib/tasks/themes.rake
@@ -86,12 +86,10 @@ namespace :themes do
desc "Install themes specified in the config file's THEME_URLS"
task :install => :environment do
verbose = true
- theme_urls = MySociety::Config.get("THEME_URLS", [])
- theme_urls.each{ |theme_url| install_theme(theme_url, verbose) }
- theme_url = MySociety::Config.get("THEME_URL", "")
- if ! theme_url.blank?
+ Configuration::theme_urls.each{ |theme_url| install_theme(theme_url, verbose) }
+ if ! Configuration::theme_url.blank?
# Old version of the above, for backwards compatibility
- install_theme(theme_url, verbose, deprecated=true)
+ install_theme(Configuration::theme_url, verbose, deprecated=true)
end
end
end \ No newline at end of file