From 6715da88a04e1f1b74193f0f36903d499d2d8068 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 6 Jun 2012 22:33:17 -0400 Subject: v3: shared_images, fix --- lib/sisu/v3/shared_images.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/sisu/v3/shared_images.rb b/lib/sisu/v3/shared_images.rb index 03093c6a..c92719f6 100644 --- a/lib/sisu/v3/shared_images.rb +++ b/lib/sisu/v3/shared_images.rb @@ -130,7 +130,8 @@ module SiSU_Images rgx_rb_image=/["']\S*?([a-zA-Z0-9_-]+?\.(?:png|jpg|gif))["']/ skin_source=SiSU_Env::InfoSkin.new(@md).apply docskin=nil - if skin_source[:type] == :dir + if skin_source \ + and skin_source[:type] == :dir docskin_with_path="#{docskin_place}/skin_#{@env.stub_pwd}.rb" docskin=[docskin_with_path.gsub(/.+?\/(skin_\S+?)\.rb/,'\1')] #docskin='skin_sisupod' -- cgit v1.2.3