--- loncom/interface/slotrequest.pm 2006/02/03 18:51:15 1.41 +++ loncom/interface/slotrequest.pm 2006/02/03 18:53:08 1.42 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler for requesting to have slots added to a students record # -# $Id: slotrequest.pm,v 1.41 2006/02/03 18:51:15 albertel Exp $ +# $Id: slotrequest.pm,v 1.42 2006/02/03 18:53:08 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -47,8 +47,7 @@ sub fail { $r->print('

'.&mt('Failed.').'

'); } - $r->print('

'. - &mt('Return to last resource').'

'); + &return_link($r); &end_page($r); } @@ -308,8 +307,7 @@ sub release_slot { if ($mgr ne 'F') { if ($slot{$slot_name}{'starttime'} < time) { $r->print("

Not allowed to release Reservation: $description, as it has already ended.

"); - $r->print('

'. - &mt('Return to last resource').'

'); + &return_link($r); return 0; } } @@ -345,10 +343,7 @@ sub release_slot { $r->print('

'. &mt('Return to slot list').'

'); } - if (!$inhibit_return_link) { - $r->print('

'. - &mt('Return to last resource').'

'); - } + if (!$inhibit_return_link) { &return_link($r); } return 1; } @@ -382,8 +377,7 @@ sub delete_slot { } $r->print('

'. &mt('Return to slot list').'

'); - $r->print('

'. - &mt('Return to last resource').'

'); + &return_link($r); } sub return_link { @@ -472,8 +466,8 @@ or

or STUFF - $r->print('

'. - &mt('Return to last resource').'

'); + + &return_link($r); return; } 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.