--- loncom/auth/localstudentphoto.pm 2006/02/07 05:08:24 1.3 +++ loncom/auth/localstudentphoto.pm 2006/02/10 02:38:59 1.4 @@ -1,6 +1,6 @@ # The LON-CAPA dummy student photo fetch mechnism # -# $Id: localstudentphoto.pm,v 1.3 2006/02/07 05:08:24 raeburn Exp $ +# $Id: localstudentphoto.pm,v 1.4 2006/02/10 02:38:59 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -81,6 +81,24 @@ sub thumbsettings { return ($fullsize,$thumbsize); } +############################### +# sub AUTOLOAD +# +# Incoming data: none +# Returns '' +# +# Prevents errors when undefined subroutines are called in this package +# Will allow new routines added in the future to be called from lond etc. +# without the need for customized versions of local*.pm packages to be +# modified to include the new subroutines immediately. +# +# See "Programming Perl" 3rd ed. pp 296-298. +############################### + +sub AUTOLOAD { + our $AUTOLOAD; + return ''; +} 1; __END__