[LON-CAPA-cvs] cvs: loncom /homework lonhomework.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Sat, 08 Nov 2003 10:44:58 -0000
albertel Sat Nov 8 05:44:58 2003 EDT
Modified files:
/loncom/homework lonhomework.pm
Log:
- BUG#1904
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.156 loncom/homework/lonhomework.pm:1.157
--- loncom/homework/lonhomework.pm:1.156 Thu Oct 30 15:22:00 2003
+++ loncom/homework/lonhomework.pm Sat Nov 8 05:44:58 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Homework handler
#
-# $Id: lonhomework.pm,v 1.156 2003/10/30 20:22:00 albertel Exp $
+# $Id: lonhomework.pm,v 1.157 2003/11/08 10:44:58 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -644,6 +644,8 @@
&renderpage($request,$dest);
} else {
my $url=$request->uri;
+ my $shownurl=$url;
+ $shownurl=~s-^/~-/priv/-;
my $dest = &Apache::lonnet::filelocation("",$request->uri);
my $errormsg;
if ($ENV{'form.newfile'}) {
@@ -663,7 +665,7 @@
<body bgcolor="#FFFFFF">
<h1>$lt{'create'} $extension $lt{'resource'}</h1>
$errormsg
-$lt{'requested'} <tt>$url</tt> $lt{'not exist'}.
+$lt{'requested'} <tt>$shownurl</tt> $lt{'not exist'}.
<p>
<b>$lt{'createnew'} $extension$instructions $lt{'click'} "$lt{'Create'} $extension" $lt{'button'}.</b>
</p>