[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm
raeburn
raeburn at source.lon-capa.org
Wed Aug 28 10:00:00 EDT 2013
raeburn Wed Aug 28 14:00:00 2013 EDT
Modified files:
/loncom/interface loncommon.pm
Log:
- Check $args is a ref to a HASH (rev. 1.1150).
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.1150 loncom/interface/loncommon.pm:1.1151
--- loncom/interface/loncommon.pm:1.1150 Tue Aug 20 14:33:42 2013
+++ loncom/interface/loncommon.pm Wed Aug 28 14:00:00 2013
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.1150 2013/08/20 14:33:42 bisitz Exp $
+# $Id: loncommon.pm,v 1.1151 2013/08/28 14:00:00 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -8045,7 +8045,11 @@
sub simple_error_page {
my ($r,$title,$msg,$args) = @_;
- if (!$args->{'no_auto_mt_msg'}) { $msg = &mt($msg); }
+ if (ref($args) eq 'HASH') {
+ if (!$args->{'no_auto_mt_msg'}) { $msg = &mt($msg); }
+ } else {
+ $msg = &mt($msg);
+ }
my $page =
&Apache::loncommon::start_page($title).
More information about the LON-CAPA-cvs
mailing list