--- loncom/homework/lonhomework.pm 2003/09/15 21:50:49 1.142 +++ loncom/homework/lonhomework.pm 2003/09/17 17:50:49 1.143 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Homework handler # -# $Id: lonhomework.pm,v 1.142 2003/09/15 21:50:49 albertel Exp $ +# $Id: lonhomework.pm,v 1.143 2003/09/17 17:50:49 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -660,7 +660,7 @@ sub handler { # if we are browsing we might not be able to know where we are if ($Apache::lonhomework::browse ne 'F') { #should know where we are, so ask - if ( $Apache::lonnet::perlvar{'MODPERL2'} ) { + if ( $Apache::lonnet::mod_perl_version() == 2 ) { &Apache::lonnet::cleanenv(); } $request->internal_redirect('/adm/ambiguous'); return;