Skip to content

Commit

Permalink
fix: Use prefix if provided in sipi.init-knora-test.lua.
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Geer committed Dec 21, 2016
1 parent ae4ad88 commit 4b99130
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config/sipi.init-knora-test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ function pre_flight(prefix,identifier,cookie)
-- Always the same test file is served
-- Make sure that this image file exists in config.imgroot
--
filepath = config.imgroot .. '/' .. 'Leaves.jpg'

if config.prefix_as_path then
filepath = config.imgroot .. '/' .. prefix .. '/' .. 'Leaves.jpg'
else
filepath = config.imgroot .. '/' .. 'Leaves.jpg'
end

if prefix == "thumbs" then
-- always allow thumbnails
Expand Down

0 comments on commit 4b99130

Please sign in to comment.