Paste number 61385: added content short-circuit

Paste number 61385: added content short-circuit
Pasted by: berick
When:1 year, 1 month ago
Share:Tweet this! | http://paste.lisp.org/+1BD5
Channel:#openils-evergreen
Paste contents:
Raw Source | XML | Display As
Around line 85 or so:

    if(!$key) {
        if($type eq 'jacket') {
            print "Location: $blank_image_url\n\n";
            return Apache2::Const::REDIRECT;
        } else {
            return Apache2::Const::NOT_FOUND;
        }
    }

$blank_image_url is a global variable set in child_init(), based on the settings from the settings server.   you can access the settings server via the $sclient variable. 

yae/nae?

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.