[LON-CAPA-cvs] cvs: loncom(version_2_9_X) /interface lonconfigsettings.pm

raeburn raeburn@source.lon-capa.org
Sat, 13 Feb 2010 19:32:52 -0000


raeburn		Sat Feb 13 19:32:52 2010 EDT

  Modified files:              (Branch: version_2_9_X)
    /loncom/interface	lonconfigsettings.pm 
  Log:
  - Backport 1.11.
  
  
Index: loncom/interface/lonconfigsettings.pm
diff -u loncom/interface/lonconfigsettings.pm:1.8 loncom/interface/lonconfigsettings.pm:1.8.2.1
--- loncom/interface/lonconfigsettings.pm:1.8	Mon Nov 23 21:45:18 2009
+++ loncom/interface/lonconfigsettings.pm	Sat Feb 13 19:32:51 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set domain-wide configuration settings
 #
-# $Id: lonconfigsettings.pm,v 1.8 2009/11/23 21:45:18 raeburn Exp $
+# $Id: lonconfigsettings.pm,v 1.8.2.1 2010/02/13 19:32:51 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -212,13 +212,14 @@
     }
     if ($context eq 'course') {
         if ($numchanged) {
-            $r->print(&Apache::courseprefs::store_changes($dom,$confname,$prefs_order,\@actions,
-                                                          $prefs,$values,\%changes,$crstype));
+            my $message = &Apache::courseprefs::store_changes($dom,$confname,$prefs_order,\@actions,
+                                                          $prefs,$values,\%changes,$crstype);
+            $r->print(&Apache::loncommon::confirmwrapper($message));
         } else {
             if ($crstype eq 'Community') {
-                $r->print(&mt("No changes made to community configuration."));
+                $r->print(&Apache::loncommon::confirmwrapper(&mt("No changes made to community configuration.")));
             } else {
-                $r->print(&mt("No changes made to course configuration."));
+                $r->print(&Apache::loncommon::confirmwrapper(&mt("No changes made to course configuration.")));
             }
         }
         if (keys(%disallowed) > 0) {