[LON-CAPA-cvs] cvs: loncom(version_2_5_X) /interface loncommon.pm
albertel
lon-capa-cvs-allow@mail.lon-capa.org
Wed, 05 Sep 2007 00:25:55 -0000
albertel Tue Sep 4 20:25:55 2007 EDT
Modified files: (Branch: version_2_5_X)
/loncom/interface loncommon.pm
Log:
- backport 1.577
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.564.2.8 loncom/interface/loncommon.pm:1.564.2.9
--- loncom/interface/loncommon.pm:1.564.2.8 Tue Sep 4 20:00:26 2007
+++ loncom/interface/loncommon.pm Tue Sep 4 20:25:52 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.564.2.8 2007/09/05 00:00:26 albertel Exp $
+# $Id: loncommon.pm,v 1.564.2.9 2007/09/05 00:25:52 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -5648,11 +5648,7 @@
if (ref($srch) eq 'HASH') {
if ($srch->{'srchby'} eq 'uname' && $srch->{'srchtype'} eq 'exact' && $srch->{'srchin'} eq 'dom' && $srch->{'srchdomain'} eq $env{'request.role.domain'}) {
$new_user_create = '<p> <input type="submit" name="forcenew" value="'.&HTML::Entities::encode(&mt('Make new user "[_1]"',$srchterm),'<>&"').'" onclick="javascript:setSearch(\'1\','.$caller.');" /> </p>';
- } else {
- $new_user_create = &newuser_radio($caller);
}
- } else {
- $new_user_create = &newuser_radio($caller);
}
$newuserscript = <<"ENDSCRIPT";
@@ -5780,13 +5776,6 @@
return $output;
}
-sub newuser_radio {
- my ($caller) = @_;
- return '<span class="LC_nobreak">'.&mt('Make new user if no match found: ').'<input type="radio" name="forcenew" value="1" onclick="javascript:setSearch(\'1\','.$caller.')" />'.&mt('Yes').' <input type="radio" name="forcenew" value="0" checked="checked" />'.&mt('No').'</span><br />';
-}
-
-
-
=pod
=back