mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-51375' of git://github.com/timhunt/moodle
This commit is contained in:
commit
576a0cc3ab
@ -160,7 +160,7 @@ class MoodleExcelWorksheet {
|
||||
*/
|
||||
public function __construct($name, PHPExcel $workbook) {
|
||||
// Replace any characters in the name that Excel cannot cope with.
|
||||
$name = strtr($name, '[]*/\?:', ' ');
|
||||
$name = strtr(trim($name, "'"), '[]*/\?:', ' ');
|
||||
// Shorten the title if necessary.
|
||||
$name = core_text::substr($name, 0, 31);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user