mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Don't cache that string. :-)
This commit is contained in:
parent
546699899a
commit
aa040665f8
1 changed files with 1 additions and 2 deletions
|
@ -958,7 +958,6 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
|
||||||
static $strmovehere;
|
static $strmovehere;
|
||||||
static $strmovefull;
|
static $strmovefull;
|
||||||
static $strunreadpostsone;
|
static $strunreadpostsone;
|
||||||
static $strunreadpostsnumber;
|
|
||||||
|
|
||||||
$labelformatoptions = New stdClass;
|
$labelformatoptions = New stdClass;
|
||||||
|
|
||||||
|
@ -973,7 +972,6 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
|
||||||
$strmovefull = strip_tags(get_string("movefull", "", "'$USER->activitycopyname'"));
|
$strmovefull = strip_tags(get_string("movefull", "", "'$USER->activitycopyname'"));
|
||||||
}
|
}
|
||||||
$strunreadpostsone = get_string('unreadpostsone', 'forum');
|
$strunreadpostsone = get_string('unreadpostsone', 'forum');
|
||||||
$strunreadpostsnumber = get_string('unreadpostsnumber', 'forum');
|
|
||||||
}
|
}
|
||||||
$labelformatoptions->noclean = true;
|
$labelformatoptions->noclean = true;
|
||||||
|
|
||||||
|
@ -1049,6 +1047,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
|
||||||
if ($unread == 1) {
|
if ($unread == 1) {
|
||||||
echo '<span class="unread"> '.$strunreadpostsone.' </span>';
|
echo '<span class="unread"> '.$strunreadpostsone.' </span>';
|
||||||
} else if ($unread) {
|
} else if ($unread) {
|
||||||
|
$strunreadpostsnumber = get_string('unreadpostsnumber', 'forum', $unread);
|
||||||
echo '<span class="unread"> '.$strunreadpostsnumber.' </span>';
|
echo '<span class="unread"> '.$strunreadpostsnumber.' </span>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue