mirror of
https://github.com/moodle/moodle.git
synced 2025-01-21 23:48:45 +01:00
Firming it up
This commit is contained in:
parent
cb208bf2b4
commit
f43e7c6f0e
@ -136,16 +136,17 @@
|
||||
while ($section <= $course->numsections) {
|
||||
|
||||
if (!empty($displaysection) and $displaysection != $section) {
|
||||
if (!empty($sections[$section])) {
|
||||
if (strlen($sections[$section]->summary) < 57) {
|
||||
$strsummary = " - ".$sections[$section]->summary;
|
||||
} else {
|
||||
$strsummary = " - ".substr($sections[$section]->summary, 0, 60)."...";
|
||||
}
|
||||
} else {
|
||||
if (empty($sections[$section])) {
|
||||
$strsummary = "";
|
||||
} else {
|
||||
$strsummary = " - ".strip_tags($sections[$section]->summary);
|
||||
if (strlen($strsummary) < 57) {
|
||||
$strsummary = " - $strsummary";
|
||||
} else {
|
||||
$strsummary = " - ".substr($strsummary, 0, 60)."...";
|
||||
}
|
||||
}
|
||||
$sectionmenu["topic=$section"] = "$section$strsummary";
|
||||
$sectionmenu["topic=$section"] = s("$section$strsummary");
|
||||
$section++;
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user