]> 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:34:05 +0000 (08:34 -0400)
commit5a8980f0e86c2785163aa172b2abeee0816bcb2e
tree3aa7c4fca1065d3d37759f1c2c328cf5b2514e3e
parent71cbc3700fc4d113a3343ef1bba893b4cfc8266b
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>
(cherry picked from commit c02931977e5121b51eb29db6116b768c24a1aadd)

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
opac/unapi