Committer: ailyin
LJSUP-6936 (Webmoney integration): require it only when necessary, fixes it in staging envU trunk/cgi-bin/LJ/Client/WebMoney.pm
Modified: trunk/cgi-bin/LJ/Client/WebMoney.pm =================================================================== --- trunk/cgi-bin/LJ/Client/WebMoney.pm 2010-09-30 06:32:14 UTC (rev 9564) +++ trunk/cgi-bin/LJ/Client/WebMoney.pm 2010-09-30 06:56:42 UTC (rev 9565) @@ -3,7 +3,6 @@ use warnings; use XML::Simple qw(); -use WebMoney::WMSigner; sub call { my ($class, $func, $xml) = @_; @@ -32,6 +31,8 @@ sub _sign { my ($class, $str) = @_; + require WebMoney::WMSigner; + my $keyfile = $ENV{'LJHOME'} . '/bin/upgrading/webmoney-keyfiles/' . $LJ::PAY_WEBMONEY_KEYFILE . '.kwm';