diff options
author | Ralph Amissah <ralph@amissah.com> | 2011-03-30 23:16:21 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2011-03-30 23:18:48 -0400 |
commit | 709e80673697492baa637ef5da95ece803f78e2b (patch) | |
tree | f09979630c98cbdaf471e6c826d89fb7f97119eb /lib | |
parent | v2, v3: cgi, sample-search-form, string output (+ clean unused help text) (diff) |
v2, v3: dal_images, image path setting
* ruby1.9.2 transition related
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 |