Committer: gprochaev
LJSUP-7105.U trunk/cgi-bin/LJ/Event/JournalNewComment.pm
Modified: trunk/cgi-bin/LJ/Event/JournalNewComment.pm =================================================================== --- trunk/cgi-bin/LJ/Event/JournalNewComment.pm 2010-10-12 03:51:42 UTC (rev 17545) +++ trunk/cgi-bin/LJ/Event/JournalNewComment.pm 2010-10-12 04:36:07 UTC (rev 17546) @@ -227,9 +227,14 @@ my $parent = $self->comment->parent; my $entry = $self->comment->entry; + ## If a user commented comment to post, get lang of parent comment user + ## If a user commented post, get lang of entry user my $lang = $parent && $parent->poster ? $parent->poster->prop('browselang') - : $LJ::DEFAULT_LANG; + : $entry && $entry->poster + ? $entry->poster->prop('browselang') + : $LJ::DEFAULT_LANG; + warn "Send a sms with lang: $lang"; if ($self->event_journal->journaltype eq 'C') { if ($parent) { if ($edited) {