Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[ljcom] r9565: LJSUP-6936 (Webmoney integration): requi...

Committer: ailyin
LJSUP-6936 (Webmoney integration): require it only when necessary, fixes it in staging env
U   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';
 

Tags: andy, ljcom, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments