[livejournal] r18665: LJSUP-8105: Need html for friends times
Committer: vsukhanov
LJSUP-8105: Need html for friends timesU trunk/cgi-bin/LJ/Comment.pm U trunk/cgi-bin/weblib.pl
Modified: trunk/cgi-bin/LJ/Comment.pm
===================================================================
--- trunk/cgi-bin/LJ/Comment.pm 2011-03-22 08:49:14 UTC (rev 18664)
+++ trunk/cgi-bin/LJ/Comment.pm 2011-03-22 09:20:00 UTC (rev 18665)
@@ -207,7 +207,7 @@
sub absorb_row {
my ($self, $row) = @_;
- $self->{$_} = $row->{$_} foreach (qw(nodetype nodeid parenttalkid posterid datepost state));
+ $self->{$_} = $row->{$_} foreach (qw(nodetype nodeid parenttalkid posterid datepost datepost_unix state));
$self->{_loaded_row} = 1;
}
@@ -402,6 +402,7 @@
sub unixtime {
my $self = shift;
__PACKAGE__->preload_rows([ $self->unloaded_singletons ]);
+ return $self->{datepost_unix} if $self->{datepost_unix};
return LJ::TimeUtil->mysqldate_to_time($self->{datepost}, 0);
}
Modified: trunk/cgi-bin/weblib.pl
===================================================================
--- trunk/cgi-bin/weblib.pl 2011-03-22 08:49:14 UTC (rev 18664)
+++ trunk/cgi-bin/weblib.pl 2011-03-22 09:20:00 UTC (rev 18665)
@@ -2488,7 +2488,9 @@
push @classes, "catalogue-page";
} elsif ($uri =~ m!^/games(/.*)?$! || LJ::Request->header_in("Host") eq "$LJ::USERAPPS_SUBDOMAIN.$LJ::DOMAIN") {
push @classes, 'framework-page';
- }
+ } elsif ($uri =~ m|^/friendstimes|){
+ push @classes, "p-friendstimes";
+ }
return join(" ", @classes);
}
