version 1.10, 2007/04/10 21:40:12
|
version 1.11, 2007/04/12 20:33:31
|
Line 951 sub modify_login {
|
Line 951 sub modify_login {
|
$resulttext = &mt('No changes made to log-in page settings'); |
$resulttext = &mt('No changes made to log-in page settings'); |
} |
} |
} else { |
} else { |
$resulttext = &mt('An error occurred: [_1]',$putresult); |
$resulttext = '<span class="LC_error">'. |
|
&mt('An error occurred: [_1]',$putresult).'</span>'; |
} |
} |
if ($errors) { |
if ($errors) { |
$resulttext .= '<br />'.&mt('The following errors occurred: ').'<ul>'. |
$resulttext .= '<br />'.&mt('The following errors occurred: ').'<ul>'. |
Line 993 sub modify_rolecolors {
|
Line 994 sub modify_rolecolors {
|
$resulttext = &mt('No changes made to default color schemes'); |
$resulttext = &mt('No changes made to default color schemes'); |
} |
} |
} else { |
} else { |
$resulttext = &mt('An error occurred: [_1]',$putresult); |
$resulttext = '<span class="LC_error">'. |
|
&mt('An error occurred: [_1]',$putresult).'</span>'; |
} |
} |
if ($errors) { |
if ($errors) { |
$resulttext .= &mt('The following errors occurred: ').'<ul>'. |
$resulttext .= &mt('The following errors occurred: ').'<ul>'. |
Line 1046 sub modify_colors {
|
Line 1048 sub modify_colors {
|
$confhash->{$role}{$img} = $logourl; |
$confhash->{$role}{$img} = $logourl; |
$changes{$role}{$img} = 1; |
$changes{$role}{$img} = 1; |
} else { |
} else { |
$error = &mt("Upload of image [_1] for $role page(s) failed because an error occurred publshing the file in RES space. Error was: [_2].",$img,$result); |
$error = &mt("Upload of image [_1] for $role page(s) failed because an error occurred publishing the file in RES space. Error was: [_2].",$img,$result); |
} |
} |
} else { |
} else { |
$error = &mt("Upload of image [_1] for $role page(s) failed because an author role could not be assigned to a Domain Configuation user ([_2]) in domain: [_3]. Error was: [_4].",$img,$confname,$dom,$author_ok); |
$error = &mt("Upload of image [_1] for $role page(s) failed because an author role could not be assigned to a Domain Configuation user ([_2]) in domain: [_3]. Error was: [_4].",$img,$confname,$dom,$author_ok); |
Line 1057 sub modify_colors {
|
Line 1059 sub modify_colors {
|
} |
} |
if ($error) { |
if ($error) { |
&Apache::lonnet::logthis($error); |
&Apache::lonnet::logthis($error); |
$errors .= '<li>'.$error.'</li>'; |
$errors .= '<li><span class="LC_error">'.$error.'</span></li>'; |
} |
} |
} elsif ($domconfig->{$role}{$img} ne '') { |
} elsif ($domconfig->{$role}{$img} ne '') { |
if ($domconfig->{$role}{$img} !~ m-^(/res/\Q$dom\E/\Q$confname\E/\Q$img\E)/([^/]+)$-) { |
if ($domconfig->{$role}{$img} !~ m-^(/res/\Q$dom\E/\Q$confname\E/\Q$img\E)/([^/]+)$-) { |
Line 1506 sub modify_quotas {
|
Line 1508 sub modify_quotas {
|
$resulttext = &mt('No changes made to default quotas'); |
$resulttext = &mt('No changes made to default quotas'); |
} |
} |
} else { |
} else { |
$resulttext = &mt('An error occurred: [_1]',$putresult); |
$resulttext = '<span class="LC_error">'. |
|
&mt('An error occurred: [_1]',$putresult).'</span>'; |
} |
} |
return $resulttext; |
return $resulttext; |
} |
} |
Line 1570 sub modify_autoenroll {
|
Line 1573 sub modify_autoenroll {
|
$resulttext = &mt('No changes made to auto-enrollment settings'); |
$resulttext = &mt('No changes made to auto-enrollment settings'); |
} |
} |
} else { |
} else { |
$resulttext = &mt('An error occurred: [_1]',$putresult); |
$resulttext = '<span class="LC_error">'. |
|
&mt('An error occurred: [_1]',$putresult).'</span>'; |
} |
} |
return $resulttext; |
return $resulttext; |
} |
} |
Line 1689 sub modify_autoupdate {
|
Line 1693 sub modify_autoupdate {
|
$resulttext = &mt('No changes made to autoupdates'); |
$resulttext = &mt('No changes made to autoupdates'); |
} |
} |
} else { |
} else { |
$resulttext = &mt('An error occurred: [_1]',$putresult); |
$resulttext = '<span class="LC_error">'. |
|
&mt('An error occurred: [_1]',$putresult).'</span>'; |
} |
} |
return $resulttext; |
return $resulttext; |
} |
} |