[livejournal] r17997: LJSUP-7499: update page parameters - add...
Committer: ssafronova
LJSUP-7499: update page parameters - add inbox unread countU trunk/cgi-bin/weblib.pl
Modified: trunk/cgi-bin/weblib.pl
===================================================================
--- trunk/cgi-bin/weblib.pl 2010-12-22 08:30:10 UTC (rev 17996)
+++ trunk/cgi-bin/weblib.pl 2010-12-22 10:09:40 UTC (rev 17997)
@@ -1365,6 +1365,8 @@
$site{default_copyright} = $default_copyright if LJ::is_enabled('default_copyright', $remote);
$site{is_dev_server} = 1 if $LJ::IS_DEV_SERVER;
+ $site{inbox_unread_count} = $remote->notification_inbox->unread_count if $remote and LJ::is_enabled('inbox_unread_count_in_head');
+
my $site_params = LJ::js_dumper(\%site);
# include standard JS info
