Changeset 1582

Show
Ignore:
Timestamp:
03/31/08 22:00:43 (5 months ago)
Author:
Neal
Message:

Fixed isactive class not being properly applied to navlinks when viewing profile pages.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/punbb-1.3-dev/upload/include/functions.php

    r1560 r1582  
    499499                                $links[] = '<li id="navsearch"'.((PUN_PAGE == 'search') ? ' class="isactive"' : '').'><a href="'.pun_link($pun_url['search']).'"><span>'.$lang_common['Search'].'</span></a></li>'; 
    500500 
    501                         $links[] = '<li id="navprofile"'.((PUN_PAGE == 'editprofile' || PUN_PAGE == 'viewprofile') ? ' class="isactive"' : '').'><a href="'.pun_link($pun_url['user'], $pun_user['id']).'"><span>'.$lang_common['Profile'].'</span></a></li>'; 
     501                        $links[] = '<li id="navprofile"'.((substr(PUN_PAGE, 0, 7) == 'profile') ? ' class="isactive"' : '').'><a href="'.pun_link($pun_url['user'], $pun_user['id']).'"><span>'.$lang_common['Profile'].'</span></a></li>'; 
    502502                } 
    503503                else