fix PLP::everything() wrapper
authorMischa POSLAWSKY <perl@shiar.org>
Sat, 31 May 2008 19:02:45 +0000 (19:02 +0000)
committerMischa POSLAWSKY <perl@shiar.org>
Sat, 31 May 2008 20:00:12 +0000 (20:00 +0000)
CGI initiator everything() was moved in 96959bff080392067524996e6edbf954
(move backend interface modules into PLP::Backend:: namespace)
and made a method, but backwards compatibility wrapper doesn't call it
as such.  This breaks old plp.cgi scripts, completely negating the
purpose of this feature.

Changes
lib/PLP.pm

diff --git a/Changes b/Changes
index 8d493cd57ace8b552dd080e31de6b9d3331086fc..da4c3e25d4b21f6c9c54770123def242d140b3c5 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,3 +1,4 @@
+- Fix everything() wrapper (broke pre-3.20 CGI scripts on 3.20)
 - Add charset to Content-Type header for UTF-8 output
 - Test pod coverage
 - %header values containing newlines will be sent as multiple fields
index 37d95b12e9cf8389a7967c4172f6cbdc72d44510..b9e3b7eef5c4ab59b01044c6aba37f6dd0732b49 100644 (file)
@@ -83,7 +83,7 @@ sub error {
 # Wrap old request handlers.
 sub everything {
        require PLP::Backend::CGI;
-       PLP::Backend::CGI::everything();
+       PLP::Backend::CGI->everything();
 }
 sub handler {
        require PLP::Backend::Apache;