[LON-CAPA-cvs] cvs: loncom /publisher lonpublisher.pm
raeburn
raeburn at source.lon-capa.org
Wed Jul 30 01:00:06 EDT 2025
raeburn Wed Jul 30 05:00:06 2025 EDT
Modified files:
/loncom/publisher lonpublisher.pm
Log:
- If copying default.meta from /priv to /res fails when publishing default.meta
file for a directory print error and return Apache Constant (OK) to handler.
Index: loncom/publisher/lonpublisher.pm
diff -u loncom/publisher/lonpublisher.pm:1.308 loncom/publisher/lonpublisher.pm:1.309
--- loncom/publisher/lonpublisher.pm:1.308 Wed Jul 30 04:52:45 2025
+++ loncom/publisher/lonpublisher.pm Wed Jul 30 05:00:06 2025
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Publication Handler
#
-# $Id: lonpublisher.pm,v 1.308 2025/07/30 04:52:45 raeburn Exp $
+# $Id: lonpublisher.pm,v 1.309 2025/07/30 05:00:06 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2517,8 +2517,11 @@
if (copy($fn,$copyfile)) {
$r->print('<p>'.&mt('Copied source file').'</p>');
} else {
- return "<span class=\"LC_error\">".
- &mt('Failed to copy source').", $!, ".&mt('FAIL')."</span>";
+ $r->print('<span class="LC_error">'.
+ &mt('Failed to copy source').", $!, ".&mt('FAIL').
+ '</span>');
+ $r->print(&Apache::loncommon::end_page());
+ return OK;
}
# --------------------------------------------------- Send update notifications
More information about the LON-CAPA-cvs
mailing list