Changeset 6432

Show
Ignore:
Timestamp:
07/08/08 23:48:35 (17 months ago)
Author:
janine
Message:

LJSUP-2486

Ad on logout.bml should only show to Plus users that just logged out. The way this was written caused
people who used to be Plus and upgraded to Paid to see the ad too, which is wrong.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/LJ/Hooks/Login.pm

    r6318 r6432  
    6060    $ret .= "<div class='columns-2-left'>\n"; 
    6161    $ret .= LJ::Widget::Login->render( get_ret => $opts{get_ret}, post_ret => $opts{post_ret}, nojs => $opts{nojs}, user => LJ::canonical_username($u->display_username) ); 
    62     if ($u->in_class('plus') || $u->in_class('force_ads')) { 
     62    if (LJ::run_hook("can_see_ads", $u)) { 
    6363        $ret .= "<h2 class='widget-header'>Inside LiveJournal</h2>"; 
    6464        $ret .= LJ::Widget::PromoText->render( domain => "main", user => $u );