From 705d1057fdb96dc55a784a27ae50ce7b871328e1 Mon Sep 17 00:00:00 2001 From: AurelioAHeckert Date: Thu, 1 May 2008 13:34:02 +0000 Subject: [PATCH] ActionItem358: survive without theme.yml --- app/helpers/application_helper.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index e51dd3b..8fa1a93 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -494,10 +494,11 @@ module ApplicationHelper end def theme_javascript() - js = YAML.load_file( RAILS_ROOT.to_s() + + conf = RAILS_ROOT.to_s() + '/public/designs/themes/' + current_theme.to_s() + - '/theme.yml' )['js'] + '/theme.yml' + js = File.exists?(conf) ? YAML.load_file( )['js'] : [] html = [] js.each do |file| file = '/designs/themes/'+ current_theme.to_s() + -- libgit2 0.21.2