[LON-CAPA-cvs] cvs: loncom /interface londocs.pm
albertel
lon-capa-cvs-allow@mail.lon-capa.org
Fri, 29 Jun 2007 20:14:18 -0000
albertel Fri Jun 29 16:14:18 2007 EDT
Modified files:
/loncom/interface londocs.pm
Log:
- remove double page end
- on add of a resource stop printing the name of the added resources twice
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.278 loncom/interface/londocs.pm:1.279
--- loncom/interface/londocs.pm:1.278 Sat Jun 16 13:42:24 2007
+++ loncom/interface/londocs.pm Fri Jun 29 16:14:18 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.278 2007/06/16 17:42:24 albertel Exp $
+# $Id: londocs.pm,v 1.279 2007/06/29 20:14:18 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1155,7 +1155,7 @@
for (my $idx=0;$idx<=$docslog{$id}{'logentry'}{'maxidx'};$idx++) {
my $oldname=(split(/\:/,$docslog{$id}{'logentry'}{'before_resources_'.$idx}))[0];
my $newname=(split(/\:/,$docslog{$id}{'logentry'}{'after_resources_'.$idx}))[0];
- if ($oldname ne $newname) {
+ if ($oldname ne '' && $oldname ne $newname) {
$r->print(&LONCAPA::map::qtescape($newname));
}
}
@@ -1185,7 +1185,6 @@
|| $shown<=$env{'form.show'})) { last; }
}
$r->print(&Apache::loncommon::end_data_table());
- $r->print(&Apache::loncommon::end_page());
}
sub editor {