--- loncom/interface/lonsimplepage.pm 2009/05/07 16:20:37 1.79 +++ loncom/interface/lonsimplepage.pm 2009/05/11 13:34:10 1.80 @@ -1,7 +1,7 @@ # The LearningOnline Network # Simple Page Editor # -# $Id: lonsimplepage.pm,v 1.79 2009/05/07 16:20:37 amueller Exp $ +# $Id: lonsimplepage.pm,v 1.80 2009/05/11 13:34:10 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -255,19 +255,19 @@ sub handler { #---Print help Text if($target ne 'tex'){ - if($allowed){ + if ($allowed) { $r->print(&Apache::loncommon::help_open_topic('Uploaded_Templates_TextBoxes',&mt('Help with filling in text boxes'))); } } #---Print Function if ($target ne 'tex') { - if($allowed || $privileged){ + if ($allowed || $privileged) { $r->print(&Apache::lontemplate::start_functionslist()); - if($allowed){ + if ($allowed) { $r->print(&Apache::lontemplate::item_functionslist( ''.&mt('Show Student View').'' .&Apache::loncommon::help_open_topic('Uploaded_Templates_PublicView'))); - }elsif($privileged){ + } elsif ($privileged) { my $edittext = &mt('Edit'); if ($group ne '') { $edittext = &mt('Edit Group Homepage'); @@ -312,11 +312,11 @@ if($target ne 'tex'){ ''. '
'. ''); - if($syllabus{'uploaded.photourl'}) { + if ($syllabus{'uploaded.photourl'}) { $r->print('' ); } } - if($allowed){ + if ($allowed) { $r->print($image.'
 
'); } @@ -341,7 +341,7 @@ if($target ne 'tex'){ $r->print('
'); } elsif ($field eq 'aaa_title') { if ($target ne 'tex') { - if($allowed){ + if ($allowed) { $r->print('

'); } $r->print('

'.$message.'

'); @@ -362,7 +362,7 @@ if($target ne 'tex'){ if(!$allowed) {$r->print($image); } } else { if ($target ne 'tex') { - if($allowed){ + if ($allowed) { $r->print('

'); } &Apache::lontemplate::print_template($r,$syllabusfields{$field},$message,$allowed,'LC_ContentBoxSpecial');