don't set tab to selected if visiting

2022.09-rc
Mike Macgirvin 2010-09-18 21:29:22 -07:00
rodzic 65a420b227
commit 971b7d7519
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -89,7 +89,8 @@ function profile_content(&$a, $update = false) {
$a->profile['profile_uid'] = $_SESSION['profile_uid'];
}
else {
$o .= '<script> $(document).ready(function() { $(\'#nav-home-link\').addClass(\'nav-selected\'); });</script>';
if($a->profile['uid'] == get_uid())
$o .= '<script> $(document).ready(function() { $(\'#nav-home-link\').addClass(\'nav-selected\'); });</script>';
// set the uid so we can pick it up during update
$_SESSION['profile_uid'] = $a->profile['uid'];
}