[LON-CAPA-cvs] cvs: loncom /interface domainprefs.pm
raeburn
raeburn at source.lon-capa.org
Fri Jul 6 09:29:49 EDT 2018
raeburn Fri Jul 6 13:29:49 2018 EDT
Modified files:
/loncom/interface domainprefs.pm
Log:
- Satisfy w3c validation.
Index: loncom/interface/domainprefs.pm
diff -u loncom/interface/domainprefs.pm:1.330 loncom/interface/domainprefs.pm:1.331
--- loncom/interface/domainprefs.pm:1.330 Fri Jul 6 13:16:58 2018
+++ loncom/interface/domainprefs.pm Fri Jul 6 13:29:49 2018
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set domain-wide configuration settings
#
-# $Id: domainprefs.pm,v 1.330 2018/07/06 13:16:58 raeburn Exp $
+# $Id: domainprefs.pm,v 1.331 2018/07/06 13:29:49 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1852,17 +1852,15 @@
my ($is_custom,$alt_text,$img_import,$showfile,$fullsize,$role,$img,$imgfile,$logincolors) = @_;
my $output;
if ($img eq 'login') {
- # suppress image for Log-in header
+ $output = '</td><td>'.$logincolors; # suppress image for Log-in header
} elsif (!$is_custom) {
if ($img ne 'domlogo') {
- $output .= &mt('Default image:').'<br />';
+ $output = &mt('Default image:').'<br />';
} else {
- $output .= &mt('Default in use:').'<br />';
+ $output = &mt('Default in use:').'<br />';
}
}
- if ($img eq 'login') { # suppress image for Log-in header
- $output .= '<td>'.$logincolors;
- } else {
+ if ($img ne 'login') {
if ($img_import) {
$output .= '<input type="hidden" name="'.$role.'_import_'.$img.'" value="'.$imgfile.'" />';
}
More information about the LON-CAPA-cvs
mailing list