]> git.koha-community.org Git - koha.git/commit
Bug 10085: unapi does not function under Plack
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Sat, 20 Apr 2013 02:52:07 +0000 (22:52 -0400)
committerChris Cormack <chris@bigballofwax.co.nz>
Sat, 27 Apr 2013 06:08:43 +0000 (18:08 +1200)
commit61d82360beae443b21ca439b97fe033bb5920173
treeb6ae472a4034d11da4bb76d6ae2c89eb0274ab9a
parent9e2b58b582531859fbdede3b327c18b5f7db8e6e
Bug 10085: unapi does not function under Plack

The following errors appear when trying to use unapi under Plack (among
others):
Variable "$cgi" is not available at /home/jcamins/kohaclone/opac/unapi line 160.
Variable "$format_to_stylesheet_map" is not available at /home/jcamins/kohaclone/opac/unapi line 173.
Variable "$format_info" is not available at /home/jcamins/kohaclone/opac/unapi line 174.
Variable "$format_to_stylesheet_map" is not available at /home/jcamins/kohaclone/opac/unapi line 185.

To test:
1) Try to view /cgi-bin/koha/unapi under Plack
2) There is no step 2. Plack crashes.
3) Apply patch.
4) Try to view /cgi-bin/koha/unapi again, and note that it doesn't crash

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
I'm puzzled how this ever worked anyway, accidentally i'm guessing,
this tidies up some lazy coding

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
opac/unapi