version 1.121, 2003/09/19 15:06:42
|
version 1.123, 2003/09/21 20:06:36
|
Line 1664 sub preferred_languages {
|
Line 1664 sub preferred_languages {
|
return @genlanguages; |
return @genlanguages; |
} |
} |
|
|
sub current_language { |
|
return (&preferred_languages)[0]; |
|
} |
|
|
|
############################################################### |
############################################################### |
## Student Answer Attempts ## |
## Student Answer Attempts ## |
############################################################### |
############################################################### |
Line 2325 sub no_cache {
|
Line 2321 sub no_cache {
|
#$r->header_out("Expires" => $date); |
#$r->header_out("Expires" => $date); |
} |
} |
|
|
|
sub content_type { |
|
my ($r,$type,$charset) = @_; |
|
unless ($charset) { |
|
$charset=&Apache::lonlocal::current_encoding; |
|
} |
|
$r->content_type($type.($charset?'; charset='.$charset:'')); |
|
} |
|
|
=pod |
=pod |
|
|
=item * add_to_env($name,$value) |
=item * add_to_env($name,$value) |