diff --git a/message/discussion.php b/message/discussion.php index 74a7d5f69a5..a660661ad9a 100644 --- a/message/discussion.php +++ b/message/discussion.php @@ -21,11 +21,20 @@ error("User ID was incorrect"); } +/// Select encoding + if (!empty($CFG->unicode)) { + $encoding = 'utf-8'; + } else { + $encoding = get_string('thischarset'); + } /// Print frameset to contain all the various panes ?> - + - <?php echo get_string('discussion', 'message').': '.fullname($user) ?> + + + <?php echo get_string('discussion', 'message').': '.fullname($user) ?> + diff --git a/message/messages.php b/message/messages.php index ca52aa89a37..ddff8c52c62 100644 --- a/message/messages.php +++ b/message/messages.php @@ -1,2 +1,24 @@ - - +unicode)) { + $encoding = 'utf-8'; + } else { + $encoding = get_string('thischarset'); + } +/// Select direction + if ( get_string('thisdirection') == 'rtl' ) { + $direction = ' dir="rtl"'; + } else { + $direction = ' dir="ltr"'; + } +/// Output the header +?> + +> + + '; + + diff --git a/message/refresh.php b/message/refresh.php index a5285dadbb5..8ef311a0558 100644 --- a/message/refresh.php +++ b/message/refresh.php @@ -14,6 +14,13 @@ error("Messaging is disabled on this site"); } +/// Select encoding + if (!empty($CFG->unicode)) { + $encoding = 'utf-8'; + } else { + $encoding = get_string('thischarset'); + } + /// Script parameters $userid = required_param('id', PARAM_INT); $userfullname = strip_tags(required_param('name', PARAM_RAW)); @@ -31,6 +38,7 @@ echo ''."\n"; echo ' '; + echo ''; echo '