[LON-CAPA-cvs] cvs: loncom /interface lonaboutme.pm lonsyllabus.pm
www
lon-capa-cvs@mail.lon-capa.org
Fri, 13 Sep 2002 19:40:48 -0000
www Fri Sep 13 15:40:48 2002 EDT
Modified files:
/loncom/interface lonaboutme.pm lonsyllabus.pm
Log:
No, this was not modified in 1970.
Index: loncom/interface/lonaboutme.pm
diff -u loncom/interface/lonaboutme.pm:1.4 loncom/interface/lonaboutme.pm:1.5
--- loncom/interface/lonaboutme.pm:1.4 Wed Aug 28 10:11:27 2002
+++ loncom/interface/lonaboutme.pm Fri Sep 13 15:40:48 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network
# "About Me" Personal Information
#
-# $Id: lonaboutme.pm,v 1.4 2002/08/28 14:11:27 www Exp $
+# $Id: lonaboutme.pm,v 1.5 2002/09/13 19:40:48 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -109,8 +109,9 @@
# ---------------------------------------------------------------- Get syllabus
if (($syllabus{'uploaded.lastmodified'}) || ($allowed)) {
- $r->print('Last updated:'.
- localtime($syllabus{'uploaded.lastmodified'}));
+ my $lastmod=$syllabus{'uploaded.lastmodified'};
+ $lastmod=($lastmod?localtime($lastmod):'never');
+ $r->print('Last updated: '.$lastmod);
if ($syllabus{'uploaded.photourl'}) {
$r->print('<img src="'.
&Apache::lonnet::tokenwrapper($syllabus{'uploaded.photourl'}).
Index: loncom/interface/lonsyllabus.pm
diff -u loncom/interface/lonsyllabus.pm:1.7 loncom/interface/lonsyllabus.pm:1.8
--- loncom/interface/lonsyllabus.pm:1.7 Wed Aug 28 10:11:27 2002
+++ loncom/interface/lonsyllabus.pm Fri Sep 13 15:40:48 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Syllabus
#
-# $Id: lonsyllabus.pm,v 1.7 2002/08/28 14:11:27 www Exp $
+# $Id: lonsyllabus.pm,v 1.8 2002/09/13 19:40:48 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -115,13 +115,16 @@
}
# ---------------------------------------------------------------- Get syllabus
if (($syllabus{'uploaded.lastmodified'}) || ($allowed)) {
+ my $lastmod=$syllabus{'uploaded.lastmodified'};
+ $lastmod=($lastmod?localtime($lastmod):'never');
+
$r->print('<table><tr><td>Uploaded:</td><td>'.
&Apache::loncommon::aboutmewrapper(
&Apache::loncommon::plainname($syllabus{'uploaded.name'},
$syllabus{'uploaded.domain'}),$syllabus{'uploaded.name'},
$syllabus{'uploaded.domain'}).
- '</td></tr><tr><td>Last updated</td><td>'.
- localtime($syllabus{'uploaded.lastmodified'}).
+ '</td></tr><tr><td>Last updated:</td><td>'.
+ $lastmod.
'</td></tr></table><p>');
if ($allowed) {
$r->print('<form method="post">');