fix failures when using the x-large size
authorgc <gc>
Sat, 18 Jun 2005 13:07:41 +0000 (13:07 +0000)
committergc <gc>
Sat, 18 Jun 2005 13:07:41 +0000 (13:07 +0000)
bin/booh-backend

index 6be3802ede5e53ee4506595b00e34edfc609f7da..32581c4e586c05c449883a8afc9d9bb178c76859 100755 (executable)
@@ -687,7 +687,7 @@ def walk_source_dir
                 html = $html_thumbnails.collect { |l| l.clone }
                 iterations = {}
                 for i in html
-                    i.sub!(/~~run_slideshow~~/, images.size <= 1 ? '' : '<a href="image-' + sizeobj['name'] + '.html?run_slideshow">' + utf8(_('Run slideshow!')) + '</a>')
+                    i.sub!(/~~run_slideshow~~/, images.size <= 1 ? '' : '<a href="image-' + size2js(sizeobj['name']) + '.html?run_slideshow">' + utf8(_('Run slideshow!'))+'</a>')
                     i.sub!(/~~title~~/, xmldir.attributes['thumbnails-caption'] || utf8(File.basename(dir)))
                     substitute_html_sizes(i, sizeobj, 'thumbnails')
                     discover_iterations(iterations, i)
@@ -924,7 +924,7 @@ def walk_source_dir
                     line
                 }
                 if xmldir.child_byname_notattr('image', 'deleted')
-                    substInFile("#{dest_dir}/image-#{sizeobj['name']}.html") { |line|
+                    substInFile("#{dest_dir}/image-#{size2js(sizeobj['name'])}.html") { |line|
                         sub_previous_next_album(previous_album, next_album, line)
                     }
                 end