mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-19804 Upgraded calls to print_headline
This commit is contained in:
parent
8af46c3b15
commit
e09fc68ba7
1 changed files with 3 additions and 3 deletions
|
@ -254,7 +254,7 @@ function chat_user_complete($course, $user, $mod, $chat) {
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
function chat_print_recent_activity($course, $viewfullnames, $timestart) {
|
function chat_print_recent_activity($course, $viewfullnames, $timestart) {
|
||||||
global $CFG, $USER, $DB;
|
global $CFG, $USER, $DB, $OUTPUT;
|
||||||
|
|
||||||
// this is approximate only, but it is really fast ;-)
|
// this is approximate only, but it is really fast ;-)
|
||||||
$timeout = $CFG->chat_old_ping * 10;
|
$timeout = $CFG->chat_old_ping * 10;
|
||||||
|
@ -334,7 +334,7 @@ function chat_print_recent_activity($course, $viewfullnames, $timestart) {
|
||||||
$strftimerecent = get_string('strftimerecent');
|
$strftimerecent = get_string('strftimerecent');
|
||||||
|
|
||||||
if ($past) {
|
if ($past) {
|
||||||
print_headline(get_string('pastchats', 'chat').':');
|
echo $OUTPUT->heading(get_string("pastchats", 'chat').':');
|
||||||
|
|
||||||
foreach ($past as $cm) {
|
foreach ($past as $cm) {
|
||||||
$link = $CFG->wwwroot.'/mod/chat/view.php?id='.$cm->id;
|
$link = $CFG->wwwroot.'/mod/chat/view.php?id='.$cm->id;
|
||||||
|
@ -345,7 +345,7 @@ function chat_print_recent_activity($course, $viewfullnames, $timestart) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($current) {
|
if ($current) {
|
||||||
print_headline(get_string('currentchats', 'chat').':');
|
echo $OUTPUT->heading(get_string("currentchats", 'chat').':');
|
||||||
|
|
||||||
$oldest = floor((time()-$CFG->chat_old_ping)/10)*10; // better db caching
|
$oldest = floor((time()-$CFG->chat_old_ping)/10)*10; // better db caching
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue