[ljcom] r11914: LJSUP-12104: Rename account page for use...
Committer: akanashin
LJSUP-12104: Rename account page for users without RF domensU trunk/cgi-bin/LJ/Widget/ErrorPage.pm
Modified: trunk/cgi-bin/LJ/Widget/ErrorPage.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/ErrorPage.pm 2012-05-10 11:27:06 UTC (rev 11913)
+++ trunk/cgi-bin/LJ/Widget/ErrorPage.pm 2012-05-10 11:33:34 UTC (rev 11914)
@@ -118,13 +118,13 @@
'baddomainru' => sub {
my %args = @_;
my $host = LJ::Request->header_in('Host');
- $host = 'xn--80a8caa.xn--f1aa.xn--p1ai';
$host =~ s/xn--//g;
$host =~ s/\.(?:(?:80adlbbiisqhy9a|f1aa)\.p1ai)//;
+ $host = Encode::encode_utf8(LJ::Pay::Payment::PayItem::DomainRU::decode_punycode($host)) || '';
return {
'title' => LJ::Lang::ml('.errorpage.baddomainru.title'),
'description' => LJ::Lang::ml('.errorpage.baddomainru.description', {
- 'domainname' => Encode::encode_utf8(LJ::Pay::Payment::PayItem::DomainRU::decode_punycode($host)),
+ 'domainname' => $host,
'uri' => "$LJ::SITEROOT/shop/domain_ru.bml" }
),
'links' => [qw( home faq sitemap )],
