Merge branch 'MDL-51375_28' of git://github.com/timhunt/moodle into MOODLE_28_STABLE

This commit is contained in:
Dan Poltawski
2015-10-12 17:01:44 +01:00
+1 -1
View File
@@ -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);