MDL-40438 migrate all collatorlib:: and textlib:: uses

This commit is contained in:
Petr Škoda
2013-08-06 21:04:35 +02:00
parent e7c21ac3be
commit 2f1e464a88
127 changed files with 423 additions and 425 deletions
+2 -2
View File
@@ -85,9 +85,9 @@ class csv_import_reader {
$this->close();
$this->_error = null;
$content = textlib::convert($content, $encoding, 'utf-8');
$content = core_text::convert($content, $encoding, 'utf-8');
// remove Unicode BOM from first line
$content = textlib::trim_utf8_bom($content);
$content = core_text::trim_utf8_bom($content);
// Fix mac/dos newlines
$content = preg_replace('!\r\n?!', "\n", $content);
// Remove any spaces or new lines at the end of the file.