--- loncom/interface/lonfeedback.pm 2009/11/21 22:36:23 1.279
+++ loncom/interface/lonfeedback.pm 2009/12/07 15:46:16 1.281
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Feedback
#
-# $Id: lonfeedback.pm,v 1.279 2009/11/21 22:36:23 www Exp $
+# $Id: lonfeedback.pm,v 1.281 2009/12/07 15:46:16 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -569,7 +569,7 @@ imscp_v1p1.xsd http://www.imsglobal.org/
@@ -815,7 +815,7 @@ sub action_links_bar {
&mt('Preferences on what is marked as NEW').
'
'.&mt('Mark NEW posts no longer new').'';
+ $discussion .= '">'.&mt('Mark NEW posts no longer new').'';
} else {
$discussion .= ' | ';
}
@@ -1255,7 +1255,7 @@ sub build_posting_display {
}
$$discussionitems[$idx] .= ' '.
''.$subject.' '.
- $sender.' '.$vgrlink.' ('.
+ ''.$sender.' '.$vgrlink.' ('.
&Apache::lonlocal::locallocaltime($posttime).') | ';
if ($$dischash{$toggkey}) {
$$discussionitems[$idx].=' '.
@@ -2136,17 +2136,17 @@ $start_page
- $lt{'soor'} |
- |
- $lt{'sprs'} |
- |
- $lt{'spur'} |
- |
- $lt{'spse'} |
- |
- $lt{'spgr'} |
- |
- $lt{'psub'} |
+ $lt{'soor'} |
+ |
+ $lt{'sprs'} |
+ |
+ $lt{'spur'} |
+ |
+ $lt{'spse'} |
+ |
+ $lt{'spgr'} |
+ |
+ $lt{'psub'} |
@@ -2949,7 +2949,19 @@ sub show_preview {
);
}
-
+sub contains_block_html {
+ my ($message)=@_;
+ return ($message =~ m/
+ <(br|h1|h2|h3|h4|h5|h6|p|ol|ul|table|pre|address|blockquote|center|div)
+ [\s]*
+ ([\w]+\=['"][\w]+['"])*
+ [\s]*
+ (
+ [\s]*[\/]>|
+ >.*<\/\1[\s]*>
+ )/x );
+}
+
sub newline_to_br {
my ($message)=@_;
my $newmessage;
@@ -3041,7 +3053,7 @@ $toolarge
- Subject: $subject
+ Subject: $subject
END
if ($idx) {
if ($attachmenturls) {
| | |