version 1.2, 2018/04/14 02:29:44
|
version 1.3, 2018/05/10 03:49:51
|
Line 276 ENDJS
|
Line 276 ENDJS
|
|
|
sub generic_error { |
sub generic_error { |
my ($r) = @_; |
my ($r) = @_; |
my $linktext; |
my $continuelink; |
if ($env{'user.adv'}) { |
unless ($env{'request.lti.login'}) { |
$linktext = &mt('Continue to your roles page'); |
my $linktext; |
} else { |
if ($env{'user.adv'}) { |
$linktext = &mt('Continue to your courses page'); |
$linktext = &mt('Continue to your roles page'); |
|
} else { |
|
$linktext = &mt('Continue to your courses page'); |
|
} |
|
$continuelink='<a href="/adm/roles">'.$linktext.'</a>'; |
} |
} |
my $continuelink='<a href="/adm/roles">'.$linktext.'</a>'; |
|
my $msg = &mt('The page you requested does not exist.'); |
my $msg = &mt('The page you requested does not exist.'); |
&Apache::loncommon::content_type($r,'text/html'); |
&Apache::loncommon::content_type($r,'text/html'); |
$r->send_http_header; |
$r->send_http_header; |