version 1.262, 2009/07/30 09:42:25
|
version 1.264, 2009/11/24 01:44:44
|
Line 1747 sub phasetwo {
|
Line 1747 sub phasetwo {
|
# ------------------------------------------------------------- Trigger updates |
# ------------------------------------------------------------- Trigger updates |
push(@{$modified_urls},[$target,$source]); |
push(@{$modified_urls},[$target,$source]); |
unless ($registered_cleanup) { |
unless ($registered_cleanup) { |
$r->register_cleanup(\¬ify); |
my $handlers = $r->get_handlers('PerlCleanupHandler'); |
|
$r->set_handlers('PerlCleanupHandler' => [\¬ify,@{$handlers}]); |
$registered_cleanup=1; |
$registered_cleanup=1; |
} |
} |
|
|
Line 1770 sub phasetwo {
|
Line 1771 sub phasetwo {
|
my $thissrcdir=$thissrc; |
my $thissrcdir=$thissrc; |
$thissrcdir=~s/\/[^\/]+$/\//; |
$thissrcdir=~s/\/[^\/]+$/\//; |
|
|
$r->print(&Apache::lonhtmlcommon::start_funclist()); |
$r->print(&Apache::loncommon::head_subbox( |
unless ($env{'request.role'}=~/^(aa)/) { |
&Apache::lonhtmlcommon::start_funclist(). |
$r->print( |
|
&Apache::lonhtmlcommon::add_item_funclist( |
|
'<a href="'.$thisdistarget.'">' |
|
.&mt('View Published Version') |
|
.'</a>') |
|
); |
|
} |
|
$r->print( |
|
&Apache::lonhtmlcommon::add_item_funclist( |
&Apache::lonhtmlcommon::add_item_funclist( |
'<a href="'.$thissrc.'">' |
'<a href="'.$thisdistarget.'">'. |
.&mt('Back to Source') |
&mt('View Published Version'). |
.'</a>') |
'</a>'). |
.&Apache::lonhtmlcommon::add_item_funclist( |
&Apache::lonhtmlcommon::add_item_funclist( |
'<a href="'.$thissrcdir.'">' |
'<a href="'.$thissrc.'">'. |
.&mt('Back to Source Directory') |
&mt('Back to Source'). |
.'</a>') |
'</a>'). |
.&Apache::lonhtmlcommon::end_funclist() |
&Apache::lonhtmlcommon::add_item_funclist( |
|
'<a href="'.$thissrcdir.'">'. |
|
&mt('Back to Source Directory'). |
|
'</a>'). |
|
&Apache::lonhtmlcommon::end_funclist()) |
); |
); |
} |
} |
return 1; |
return 1; |