]> 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)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Tue, 23 Apr 2013 12:33:51 +0000 (08:33 -0400)
commitc02931977e5121b51eb29db6116b768c24a1aadd
tree9fed2d45db1daeb2d4a935569c05b017bd70cc39
parent79a67fcff29f82bb2b7ae0984fd5900f575b78f4
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: Jared Camins-Esakov <jcamins@cpbibliography.com>
opac/unapi