[LON-CAPA-cvs] cvs: loncom /publisher lonunauthorized.pm
www
www@source.lon-capa.org
Tue, 07 Jun 2011 18:05:08 -0000
www Tue Jun 7 18:05:08 2011 EDT
Modified files:
/loncom/publisher lonunauthorized.pm
Log:
Bug #4974: better message if uploaded filename is not supported
Index: loncom/publisher/lonunauthorized.pm
diff -u loncom/publisher/lonunauthorized.pm:1.9 loncom/publisher/lonunauthorized.pm:1.10
--- loncom/publisher/lonunauthorized.pm:1.9 Thu May 14 15:36:29 2009
+++ loncom/publisher/lonunauthorized.pm Tue Jun 7 18:05:08 2011
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Unauthorized to access construction space
#
-# $Id: lonunauthorized.pm,v 1.9 2009/05/14 15:36:29 bisitz Exp $
+# $Id: lonunauthorized.pm,v 1.10 2011/06/07 18:05:08 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -67,6 +67,10 @@
,'<tt>'.&Apache::lonnet::hostname($ownerhome).'</tt>')
.'</p>');
}
+ } elsif (!$env{'request.editurl'}) {
+ $r->print('<p class="LC_error">'
+ .&mt('There may be a problem with the filename, e.g., you may be attempting to edit a versioned file (files in construction may not include a version number in front of the extension).')
+ .'</p>');
} else {
$r->print('<p class="LC_error">'
.&mt('You do not have authoring privileges for this resource')