@@ -, +, @@ http://localhost:8080/cgi-bin/koha/ilsdi.pl?service=RenewLoan&patron_id=5&item_id=1128 --- opac/ilsdi.pl | 8 ++++++++ 1 file changed, 8 insertions(+) --- a/opac/ilsdi.pl +++ a/opac/ilsdi.pl @@ -127,6 +127,14 @@ unless ( $cgi->param('service') ) { exit 0; } +# Set the userenv +C4::Context->_new_userenv(1); +C4::Context->set_userenv( + undef, undef, undef, 'CRON', 'CRON', undef, + undef, undef, undef, undef, undef +); +C4::Context->interface('opac'); #FIXME 'ilsdi' should be a valid value? + # If user requested a service description, then display it if ( scalar $cgi->param('service') eq "Describe" and any { scalar $cgi->param('verb') eq $_ } @services ) { my ( $template, $loggedinuser, $cookie ) = get_template_and_user( --