fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-08-20 06:25 am

[dw-free] unknown string ".cluster.unknown" on /misc/whereami when clusters aren't set up

[commit: http://hg.dwscoalition.org/dw-free/rev/4954905b7319]

http://bugs.dwscoalition.org/show_bug.cgi?id=2973

Use absolute path, instead of relative path of the translation string to
bring it into the proper scope.

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/DW/Controller/Misc.pm
--------------------------------------------------------------------------------
diff -r 4894aa8bbd98 -r 4954905b7319 cgi-bin/DW/Controller/Misc.pm
--- a/cgi-bin/DW/Controller/Misc.pm	Thu Aug 19 19:52:24 2010 -0500
+++ b/cgi-bin/DW/Controller/Misc.pm	Fri Aug 20 14:25:23 2010 +0800
@@ -34,7 +34,7 @@ sub whereami_handler {
     return $rv unless $ok;
 
     my $vars = { %$rv,
-        cluster_name => $LJ::CLUSTER_NAME{$rv->{u}->clusterid} || LJ::Lang::ml( '.cluster.unknown' ),
+        cluster_name => $LJ::CLUSTER_NAME{$rv->{u}->clusterid} || LJ::Lang::ml( '/misc/whereami.tt.cluster.unknown' ),
     };
 
     return DW::Template->render_template( 'misc/whereami.tt', $vars );
--------------------------------------------------------------------------------