mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'w36_MDL-29014_m22_str' of git://github.com/skodak/moodle
This commit is contained in:
commit
62b214d9a6
10 changed files with 22 additions and 22 deletions
|
@ -252,7 +252,7 @@ class block_navigation extends block_base {
|
|||
// Truncate the text to $long characters
|
||||
$node->text = $this->trim_left($textlib, $node->text, $long);
|
||||
}
|
||||
if (is_string($node->shorttext) && strlen($node->shorttext)>($short+3)) {
|
||||
if (is_string($node->shorttext) && $textlib->strlen($node->shorttext)>($short+3)) {
|
||||
// Truncate the shorttext
|
||||
$node->shorttext = $this->trim_left($textlib, $node->shorttext, $short);
|
||||
}
|
||||
|
@ -262,7 +262,7 @@ class block_navigation extends block_base {
|
|||
// Truncate the text to $long characters
|
||||
$node->text = $this->trim_center($textlib, $node->text, $long);
|
||||
}
|
||||
if (is_string($node->shorttext) && strlen($node->shorttext)>($short+3)) {
|
||||
if (is_string($node->shorttext) && $textlib->strlen($node->shorttext)>($short+3)) {
|
||||
// Truncate the shorttext
|
||||
$node->shorttext = $this->trim_center($textlib, $node->shorttext, $short);
|
||||
}
|
||||
|
|
|
@ -223,7 +223,7 @@
|
|||
|
||||
if(empty($title)){
|
||||
// no title present, use portion of description
|
||||
$title = substr(strip_tags($description), 0, 20) . '...';
|
||||
$title = textlib::substr(strip_tags($description), 0, 20) . '...';
|
||||
}else{
|
||||
$title = break_up_long_words($title, 30);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue