[dw-free] invite code distribution failing
[commit: http://hg.dwscoalition.org/dw-free/rev/184bda4c9784]
http://bugs.dwscoalition.org/show_bug.cgi?id=1219
Make invite code distribution work in production again.
Patch by
mark.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=1219
Make invite code distribution work in production again.
Patch by
![[staff profile]](https://www.dreamwidth.org/img/silk/identity/user_staff.png)
Files modified:
- cgi-bin/ljdb.pl
-------------------------------------------------------------------------------- diff -r 019a523054f5 -r 184bda4c9784 cgi-bin/ljdb.pl --- a/cgi-bin/ljdb.pl Sun May 17 02:42:16 2009 +0000 +++ b/cgi-bin/ljdb.pl Sun May 17 02:48:00 2009 +0000 @@ -521,6 +521,12 @@ sub foreach_cluster { sub foreach_cluster { my $coderef = shift; my $opts = shift || {}; + + # have to include this via an eval so it doesn't actually get included + # until someone calls foreach cluster. at which point, if they're in web + # context, it will fail. + eval "use LJ::DBUtil; 1;"; + die $@ if $@; foreach my $cluster_id (@LJ::CLUSTERS) { my $dbr = ($LJ::IS_DEV_SERVER) ? --------------------------------------------------------------------------------
no subject
(Anonymous) 2009-05-17 12:53 pm (UTC)(link)no subject
no subject
no subject
Or should this discussion be moved to dw_dev?
no subject
no subject
no subject
(Eventually I want to deprecate *lib.pl!)