diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sisu/v2/dal_images.rb | 5 | ||||
| -rw-r--r-- | lib/sisu/v3/dal_images.rb | 5 | 
2 files changed, 6 insertions, 4 deletions
| diff --git a/lib/sisu/v2/dal_images.rb b/lib/sisu/v2/dal_images.rb index ed537f22..2f9eb79d 100644 --- a/lib/sisu/v2/dal_images.rb +++ b/lib/sisu/v2/dal_images.rb @@ -92,8 +92,9 @@ module SiSU_images                    dir=SiSU_Env::Info_env.new(@md.fns)                    path_image=[dir.path.image_source_local_tex,dir.path.image_source_remote_tex,dir.path.image_source_tex]                    image_path=nil -                  path_image.each do |image_path| -                    break if FileTest.exist?("#{image_path}/#{image}") +                  path_image.each do |img_pth| +                    image_path=img_pth +                    break if FileTest.exist?("#{img_pth}/#{image}")                    end                    if FileTest.exist?("#{image_path}/#{image}")                      if @rmgk diff --git a/lib/sisu/v3/dal_images.rb b/lib/sisu/v3/dal_images.rb index 0d541a13..8c7e9f94 100644 --- a/lib/sisu/v3/dal_images.rb +++ b/lib/sisu/v3/dal_images.rb @@ -92,8 +92,9 @@ module SiSU_images                    dir=SiSU_Env::Info_env.new(@md.fns)                    path_image=[dir.path.image_source_include_local,dir.path.image_source_include_remote,dir.path.image_source_include]                    image_path=nil -                  path_image.each do |image_path| -                    break if FileTest.exist?("#{image_path}/#{image}") +                  path_image.each do |img_pth| +                    image_path=img_pth +                    break if FileTest.exist?("#{img_pth}/#{image}")                    end                    if FileTest.exist?("#{image_path}/#{image}")                      if @rmgk | 
