--- loncom/publisher/lonpubdir.pm 2005/05/19 03:22:04 1.80
+++ loncom/publisher/lonpubdir.pm 2008/11/20 15:19:28 1.114
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Construction Space Directory Lister
#
-# $Id: lonpubdir.pm,v 1.80 2005/05/19 03:22:04 www Exp $
+# $Id: lonpubdir.pm,v 1.114 2008/11/20 15:19:28 jms Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -36,10 +36,12 @@ use Apache::Constants qw(:common :http :
use Apache::loncacc;
use Apache::loncommon();
use Apache::lonhtmlcommon();
+use Apache::londiff();
use Apache::lonlocal;
use Apache::lonmsg;
use Apache::lonmenu;
use Apache::lonnet;
+use LONCAPA;
sub handler {
@@ -103,15 +105,15 @@ sub handler {
my $numres = 0;
# Start off the directory table.
- $r->print('
Directory Contents:
');
- $r->print(''.
- ''.&mt('Type').' | '.
- ''.&mt('Actions').' | '.
- ''.&mt('Name').' | '.
- ''.&mt('Title').' | '.
- ''.&mt('Status').' | '.
- ''.&mt('Last Modified').
- ' |
');
+ $r->print(''.&mt('Directory Contents:').'
');
+ $r->print(''.
+ ''.&mt('Type').' | '.
+ ''.&mt('Actions').' | '.
+ ''.&mt('Name').' | '.
+ ''.&mt('Title').' | '.
+ ''.&mt('Status').' | '.
+ ''.&mt('Last Modified').
+ ' |
'."\n");
my $filename;
my $dirptr=16384; # Mask indicating a directory in stat.cmode.
@@ -137,7 +139,7 @@ sub handler {
}
closedir(DIR);
- $r->print('