fix default size problem when only x-large is used
authorGuillaume Cottenceau <gcottenc@gmail.com>
Sat, 3 Jan 2009 22:50:44 +0000 (23:50 +0100)
committerGuillaume Cottenceau <gcottenc@gmail.com>
Sat, 3 Jan 2009 22:50:44 +0000 (23:50 +0100)
bin/booh-backend

index b4665d3c33a54968e7e4550ec16e99d051c01ebf..910778da0da725088a55b83752ea88010546dc3a 100755 (executable)
@@ -463,7 +463,7 @@ end
 def html_reload_to_thumbnails
     html_reload_to_thumbnails = $preferred_size_reloader.clone
     html_reload_to_thumbnails.gsub!(/~~theme~~/, $theme)
-    html_reload_to_thumbnails.gsub!(/~~default_size~~/, $default_size['name'])
+    html_reload_to_thumbnails.gsub!(/~~default_size~~/, size2js($default_size['name']))
     html_reload_to_thumbnails.gsub!(/~~htmlsuffix~~/, $htmlsuffix)
     html_reload_to_thumbnails.gsub!(/~~all_sizes~~/, all_images_sizes.collect { |s| "\"#{size2js(s['name'])}\"" }.join(', '))
     size_auto_chooser = '';