[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /interface loncommon.pm
raeburn
raeburn at source.lon-capa.org
Sat Jan 21 18:46:55 EST 2017
raeburn Sat Jan 21 23:46:55 2017 EDT
Modified files: (Branch: version_2_11_X)
/loncom/interface loncommon.pm
Log:
- For 2.11
- Backport 1.1268
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.1075.2.119 loncom/interface/loncommon.pm:1.1075.2.120
--- loncom/interface/loncommon.pm:1.1075.2.119 Tue Nov 29 13:13:22 2016
+++ loncom/interface/loncommon.pm Sat Jan 21 23:46:54 2017
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.1075.2.119 2016/11/29 13:13:22 raeburn Exp $
+# $Id: loncommon.pm,v 1.1075.2.120 2017/01/21 23:46:54 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -15334,6 +15334,15 @@
$env{'user.noloadbalance'} = $lonhost;
}
+ if ($form->{'noloadbalance'}) {
+ my @hosts = &Apache::lonnet::current_machine_ids();
+ my $hosthere = $form->{'noloadbalance'};
+ if (grep(/^\Q$hosthere\E$/, at hosts)) {
+ $initial_env{"user.noloadbalance"} = $hosthere;
+ $env{'user.noloadbalance'} = $hosthere;
+ }
+ }
+
my %is_adv = ( is_adv => $env{'user.adv'} );
my %domdef;
unless ($domain eq 'public') {
More information about the LON-CAPA-cvs
mailing list