Committer: vad
LJSUP-7973: Link does not appear correctly on custom stylesU trunk/cgi-bin/LJ/Hooks/Customize.pm
Modified: trunk/cgi-bin/LJ/Hooks/Customize.pm =================================================================== --- trunk/cgi-bin/LJ/Hooks/Customize.pm 2011-02-17 03:46:43 UTC (rev 10059) +++ trunk/cgi-bin/LJ/Hooks/Customize.pm 2011-02-17 07:20:16 UTC (rev 10060) @@ -351,4 +351,15 @@ return; }); + +LJ::register_hook('need_res_for_journals', sub { + my $u = shift; + + require Apache::WURFL; + if (!$LJ::DISABLED{'view_mobile_link_always'} || Apache::WURFL->is_mobile()) { + LJ::need_res('stc/show-mobile-link.css'); + } + +}); + 1;