--- loncom/enrollment/localenroll.pm 2006/02/07 05:08:21 1.12 +++ loncom/enrollment/localenroll.pm 2006/02/10 02:38:46 1.14 @@ -1,6 +1,6 @@ # functions to glue school database system into Lon-CAPA for # automated enrollment -# $Id: localenroll.pm,v 1.12 2006/02/07 05:08:21 raeburn Exp $ +# $Id: localenroll.pm,v 1.14 2006/02/10 02:38:46 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -256,8 +256,8 @@ sub validate_courseID { # (a) $authparam - the value of from the classlist.xml files, # or if this blank, the default autharg, set by the domain coordinator when # creating the course with loncreatecourse.pm -# (b) $username - the username of the new user # (b) $dom - the domain of the new user. +# (c) $username - the username of the new user (currently not actually used) # # Four values are returned: # (a) the value of $authparam - which might have been changed @@ -286,7 +286,7 @@ sub validate_courseID { ############################### sub create_password { - my ($authparam,$username,$dom) = @_; + my ($authparam,$dom,$username) = @_; my $authchk = 'ok'; my $newpasswd = ''; my $create_passwd = 0; @@ -416,4 +416,23 @@ sub manager_photo_update { return ($update,$comment); } +############################### +# 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;