Committer: vsukhanov
LJSUP-7689: fixed "Can't locate object method "allowed" via package "LJ::Request" error.U trunk/cgi-bin/LJ/Request/Apache.pm U trunk/cgi-bin/LJ/Request/Apache2.pm
Modified: trunk/cgi-bin/LJ/Request/Apache.pm =================================================================== --- trunk/cgi-bin/LJ/Request/Apache.pm 2011-01-12 11:06:02 UTC (rev 18012) +++ trunk/cgi-bin/LJ/Request/Apache.pm 2011-01-12 12:26:46 UTC (rev 18013) @@ -347,8 +347,11 @@ $class->apr()->err_headers_out (@_) } +sub LJ::Request::allowed { + my $class = shift; + return $class->r()->allowed(@_); +} - ## Returns Array (Key, Value, Key, Value) which can be converted to HASH. ## But there can be some params with the same name! # Modified: trunk/cgi-bin/LJ/Request/Apache2.pm =================================================================== --- trunk/cgi-bin/LJ/Request/Apache2.pm 2011-01-12 11:06:02 UTC (rev 18012) +++ trunk/cgi-bin/LJ/Request/Apache2.pm 2011-01-12 12:26:46 UTC (rev 18013) @@ -389,6 +389,10 @@ $class->r()->err_headers_out (@_) } +sub LJ::Request::allowed { + my $class = shift; + return $class->r()->allowed(@_); +} ## Returns Array (Key, Value, Key, Value) which can be converted to HASH.