*** empty log message ***
authorgc <gc>
Wed, 12 Apr 2006 18:27:42 +0000 (18:27 +0000)
committergc <gc>
Wed, 12 Apr 2006 18:27:42 +0000 (18:27 +0000)
bin/booh-backend

index 18b703eaa1aa7526943d6affdfbb914e185a60d3..f20fbb589493c4ffc39535441f23d51a864a54ec 100755 (executable)
@@ -1003,6 +1003,12 @@ def walk_source_dir
                     i.gsub!(/~~current_size_js~~/, size2js(sizeobj['name']))
                     i.gsub!(/~~madewith~~/, $madewith || '')
                     i.gsub!(/~~indexlink~~/, $indexlink || '')
+                    if all_pages.size == 1
+                        i.gsub!(/~~ifmultiplepages\?~~.*~~fi~~/, '')
+                    else
+                        i.gsub!(/~~ifmultiplepages\?~~(.+?)~~fi~~/) { $1 }
+                        i.gsub!(/~~multiplepagesstuff~~/, mstuff)
+                    end
                 end
                 html_nojs = html.collect { |l| l.clone }
                 pagecount = 0
@@ -1013,12 +1019,6 @@ def walk_source_dir
                                                    all_pages.collect_with_index { |p,idx| page == p ? idx + 1 : "<a href=\"thumbnails-#{size2js(sizeobj['name'])}-#{idx}.html\">#{idx + 1}</a>" }.join(', ') +
                                                    (pagecount < all_pages.size - 1 ? " <a href=\"thumbnails-#{size2js(sizeobj['name'])}-#{pagecount + 1}.html\">" + _("Next ->") + "</a> " : ''))
                     for i in final_html
-                        if all_pages.size == 1
-                            i.gsub!(/~~ifmultiplepages\?~~.*~~fi~~/, '')
-                        else
-                            i.gsub!(/~~ifmultiplepages\?~~(.+?)~~fi~~/) { $1 }
-                            i.gsub!(/~~multiplepagesstuff~~/, mstuff)
-                        end
                         i.sub!(/~~thumbnails~~/, html_thumbnails)
                         substitute_html_sizes(i, sizeobj, 'thumbnails', "-#{pagecount}")
                     end