Now chat->name works under filterall.

This commit is contained in:
stronk7
2005-03-27 11:36:54 +00:00
parent 4c79399570
commit 200371e9f7
8 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -59,7 +59,7 @@
<head>
<meta http-equiv="content-type" content="text/html; charset=<?php echo get_string('thischarset'); ?>" />
<title>
<?php echo "$strchat: $course->shortname: $chat->name$groupname" ?>
<?php echo "$strchat: $course->shortname: ".format_string($chat->name,true)."$groupname" ?>
</title>
</head>
<frameset cols="*,200" border="5" framespacing="no" frameborder="yes" marginwidth="2" marginheight="1">
+1 -1
View File
@@ -59,7 +59,7 @@
<head>
<meta http-equiv="content-type" content="text/html; charset=<?php echo get_string('thischarset'); ?>" />
<title>
<?php echo "$strchat: $course->shortname: $chat->name$groupname" ?>
<?php echo "$strchat: $course->shortname: ".format_string($chat->name,true)."$groupname" ?>
</title>
</head>
<frameset cols="*,200" border="5" framespacing="no" frameborder="yes" marginwidth="2" marginheight="1">
+2 -2
View File
@@ -53,10 +53,10 @@
foreach ($chats as $chat) {
if (!$chat->visible) {
//Show dimmed if the mod is hidden
$link = "<a class=\"dimmed\" href=\"view.php?id=$chat->coursemodule\">$chat->name</a>";
$link = "<a class=\"dimmed\" href=\"view.php?id=$chat->coursemodule\">".format_string($chat->name,true)."</a>";
} else {
//Show normal if the mod is visible
$link = "<a href=\"view.php?id=$chat->coursemodule\">$chat->name</a>";
$link = "<a href=\"view.php?id=$chat->coursemodule\">".format_string($chat->name,true)."</a>";
}
$printsection = '';
if ($chat->section !== $currentsection) {
+1 -1
View File
@@ -203,7 +203,7 @@ function chat_print_recent_activity($course, $isteacher, $timestart) {
print_headline(get_string('currentchats', 'chat').':');
$outputstarted = true;
}
echo '<div class="room"><p class="head"><a href="'.$CFG->wwwroot.'/mod/chat/view.php?c='.$chat->id.'">'.$chat->name.'</a></p><ul>';
echo '<div class="room"><p class="head"><a href="'.$CFG->wwwroot.'/mod/chat/view.php?c='.$chat->id.'">'.format_string($chat->name,true).'</a></p><ul>';
}
$current = $chatuser->chatid;
}
+2 -2
View File
@@ -30,7 +30,7 @@ class page_chat extends page_generic_activity {
$this->init_full();
$replacements = array(
'%fullname%' => $this->activityrecord->name
'%fullname%' => format_string($this->activityrecord->name)
);
foreach($replacements as $search => $replace) {
$title = str_replace($search, $replace, $title);
@@ -44,7 +44,7 @@ class page_chat extends page_generic_activity {
}
$breadcrumbs[get_string('modulenameplural', 'chat')] = $CFG->wwwroot.'/mod/chat/index.php?id='.$this->courserecord->id;
$breadcrumbs[$this->activityrecord->name] = $CFG->wwwroot.'/mod/chat/view.php?id='.$this->modulerecord->id;
$breadcrumbs[format_string($this->activityrecord->name)] = $CFG->wwwroot.'/mod/chat/view.php?id='.$this->modulerecord->id;
if(!empty($morebreadcrumbs)) {
$breadcrumbs = array_merge($breadcrumbs, $morebreadcrumbs);
+5 -5
View File
@@ -43,9 +43,9 @@
if ($start and $end and !$confirmdelete) { // Show a full transcript
print_header_simple("$chat->name: $strchatreport", '',
print_header_simple(format_string($chat->name).": $strchatreport", '',
"<a href=\"index.php?id=$course->id\">$strchats</a> ->
<a href=\"view.php?id=$cm->id\">$chat->name</a> ->
<a href=\"view.php?id=$cm->id\">".format_string($chat->name,true)."</a> ->
<a href=\"report.php?id=$cm->id\">$strchatreport</a>",
'', '', true, '', navmenu($course, $cm));
@@ -95,12 +95,12 @@
/// Print the Sessions display
print_header_simple("$chat->name: $strchatreport", '',
print_header_simple(format_string($chat->name).": $strchatreport", '',
"<a href=\"index.php?id=$course->id\">$strchats</a> ->
<a href=\"view.php?id=$cm->id\">$chat->name</a> -> $strchatreport",
<a href=\"view.php?id=$cm->id\">".format_string($chat->name,true)."</a> -> $strchatreport",
'', '', true, '', navmenu($course, $cm));
print_heading($chat->name.': '.get_string('sessions', 'chat'));
print_heading(format_string($chat->name).': '.get_string('sessions', 'chat'));
/// Check to see if groups are being used here
+1 -1
View File
@@ -52,7 +52,7 @@
$newid = insert_record ("chat",$chat);
//Do some output
echo "<li>".get_string("modulename","chat")." \"".$chat->name."\"</li>";
echo "<li>".get_string("modulename","chat")." \"".format_string(stripslashes($chat->name),true)."\"</li>";
backup_flush(300);
if ($newid) {
+1 -1
View File
@@ -82,7 +82,7 @@
get_string('viewreport', 'chat').'</a></p>';
}
print_heading($chat->name);
print_heading(format_string($chat->name));
/// Check to see if groups are being used here
if ($groupmode = groupmode($course, $cm)) { // Groups are being used