From aa040665f8f51f454c890e770231ecccd891ea13 Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 29 Jan 2005 10:03:00 +0000 Subject: [PATCH] Don't cache that string. :-) --- course/lib.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/course/lib.php b/course/lib.php index c3a4f35212..a1a2bba0be 100644 --- a/course/lib.php +++ b/course/lib.php @@ -958,7 +958,6 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false, static $strmovehere; static $strmovefull; static $strunreadpostsone; - static $strunreadpostsnumber; $labelformatoptions = New stdClass; @@ -973,7 +972,6 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false, $strmovefull = strip_tags(get_string("movefull", "", "'$USER->activitycopyname'")); } $strunreadpostsone = get_string('unreadpostsone', 'forum'); - $strunreadpostsnumber = get_string('unreadpostsnumber', 'forum'); } $labelformatoptions->noclean = true; @@ -1049,6 +1047,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false, if ($unread == 1) { echo ' '.$strunreadpostsone.' '; } else if ($unread) { + $strunreadpostsnumber = get_string('unreadpostsnumber', 'forum', $unread); echo ' '.$strunreadpostsnumber.' '; } } -- 2.39.5