Committer: ailyin
LJSUP-9653 (ljlang refactoring)U trunk/bin/maint/expiring.pl U trunk/bin/maint/pay.pl U trunk/bin/worker/download-typepads-questions U trunk/bin/worker/qotd-wepc U trunk/cgi-bin/LJ/Client/Twitter.pm
Modified: trunk/bin/maint/expiring.pl =================================================================== --- trunk/bin/maint/expiring.pl 2011-08-30 06:09:25 UTC (rev 10934) +++ trunk/bin/maint/expiring.pl 2011-08-30 06:36:19 UTC (rev 10935) @@ -5,11 +5,11 @@ use vars qw(%maint); use lib "$ENV{'LJHOME'}/cgi-bin"; use LJ::Pay; +use LJ::Lang; $maint{'expiring'} = sub { use LJ::Pay::RecBill; - require "$ENV{'LJHOME'}/cgi-bin/ljlang.pl"; if ($LJ::DISABLED{recbill_process}) { print "-I- Skipping 'expiring' run: RecBill process disabled\n"; Modified: trunk/bin/maint/pay.pl =================================================================== --- trunk/bin/maint/pay.pl 2011-08-30 06:09:25 UTC (rev 10934) +++ trunk/bin/maint/pay.pl 2011-08-30 06:36:19 UTC (rev 10935) @@ -7,10 +7,10 @@ use LJ::Pay; use LJ::TimeUtil; use LJ::API::Payments; +use LJ::Lang; $maint{'appbill_delivery'} = sub { - require "$ENV{'LJHOME'}/cgi-bin/ljlang.pl"; my $dbh = LJ::get_db_writer() or die "Could not contact global database master"; @@ -20,8 +20,6 @@ $maint{'pay_mail'} = sub { - require "$ENV{'LJHOME'}/cgi-bin/ljlang.pl"; - my $dbh = LJ::get_db_writer() or die "Could not contact global database master"; @@ -201,8 +199,6 @@ $maint{'deliver'} = sub { - require "$ENV{'LJHOME'}/cgi-bin/ljlang.pl"; - LJ::start_request(); my $dbh = LJ::get_db_writer() @@ -649,8 +645,6 @@ $maint{'recbill_reminder'} = sub { - require "$ENV{'LJHOME'}/cgi-bin/ljlang.pl"; - my $dbh = LJ::get_db_writer() or die "Could not contact global database master"; Modified: trunk/bin/worker/download-typepads-questions =================================================================== --- trunk/bin/worker/download-typepads-questions 2011-08-30 06:09:25 UTC (rev 10934) +++ trunk/bin/worker/download-typepads-questions 2011-08-30 06:36:19 UTC (rev 10935) @@ -10,7 +10,7 @@ use LJ::QotD; use LJ::Widget::QotD; -require 'ljlang.pl'; +use LJ::Lang; ## Question's URI use constant DATA_SOURCE => 'http://conversations.typepad.com/static/api/questions/sponsor/4'; Modified: trunk/bin/worker/qotd-wepc =================================================================== --- trunk/bin/worker/qotd-wepc 2011-08-30 06:09:25 UTC (rev 10934) +++ trunk/bin/worker/qotd-wepc 2011-08-30 06:36:19 UTC (rev 10935) @@ -3,7 +3,7 @@ use lib "$ENV{LJHOME}/cgi-bin"; require 'ljlib.pl'; require 'ljprotocol.pl'; -require 'ljlang.pl'; +use LJ::Lang; use LJ::QotD; use LWP::UserAgent; Modified: trunk/cgi-bin/LJ/Client/Twitter.pm =================================================================== --- trunk/cgi-bin/LJ/Client/Twitter.pm 2011-08-30 06:09:25 UTC (rev 10934) +++ trunk/cgi-bin/LJ/Client/Twitter.pm 2011-08-30 06:36:19 UTC (rev 10935) @@ -11,7 +11,7 @@ use LJ::Client::Twitter::Tweet; use LJ::Client::Twitter::User; -require 'ljlang.pl'; +use LJ::Lang; =head1 NAME