--- loncom/auth/lonlogout.pm 2012/02/13 17:03:59 1.42.2.2.2.4 +++ loncom/auth/lonlogout.pm 2012/01/08 23:35:22 1.42.2.3 @@ -1,7 +1,7 @@ # The LearningOnline Network # Logout Handler # -# $Id: lonlogout.pm,v 1.42.2.2.2.4 2012/02/13 17:03:59 raeburn Exp $ +# $Id: lonlogout.pm,v 1.42.2.3 2012/01/08 23:35:22 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -127,12 +127,10 @@ sub handler { '://'.$server.$path; if (($path eq '') && (!$isredirect)) { my $serverhomeID = - &Apache::lonnet::get_server_homeID($server); + &Apache::lonnet::get_server_homeID($lonhost); my $serverhomedom = &Apache::lonnet::host_domain($serverhomeID); - if ($serverhomedom eq $domain) { - $login_url = '/adm/login'; - } else { + if ($serverhomedom ne $domain) { $path = '/adm/login'; $login_url .= $path; } @@ -160,12 +158,8 @@ sub handler { Due to security reasons in new web browsers a window could only be closed with java script, if this window has also been opend with javascript. This is not done here which means that in most cases the close link will not work. Unless we find another solution, this link should not be offered. (Stefan Bisitz, 2008-08-01) =cut - $relogmessage.='

'.&mt('[_1]Log in again[_2]' ,'','') - .(' 'x6).&mt('[_1]Return to course information page[_2]' - ,'' - ,'') .'

'; } if ($env{'request.sso.login'}